Fix missing await and argument
This commit is contained in:
parent
890859b022
commit
f5135aa30a
1 changed files with 2 additions and 2 deletions
|
@ -32,9 +32,9 @@ class Message(object):
|
|||
async def process(self):
|
||||
"""Process and possibly respond to the message"""
|
||||
if self.message_content.lower() == "hello world":
|
||||
self._hello_world()
|
||||
await self._hello_world()
|
||||
|
||||
async def _hello_world():
|
||||
async def _hello_world(self):
|
||||
"""Say hello"""
|
||||
text = "Hello, world!"
|
||||
await send_text_to_room(self.client, self.room.room_id, text)
|
||||
|
|
Loading…
Reference in a new issue