Fix missing await and argument

This commit is contained in:
Andrew Morgan 2019-11-07 23:31:18 +00:00
parent 890859b022
commit f5135aa30a

View file

@ -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)