|
@@ -30,7 +30,7 @@ class Rollbot(Generic[RawMsg]):
|
|
|
def read_config(self, key: str) -> Any:
|
|
|
raise NotImplementedError("Must be implemented by driver")
|
|
|
|
|
|
- def parse(self, incoming: RawMsg) -> Message:
|
|
|
+ async def parse(self, incoming: RawMsg) -> Message:
|
|
|
raise NotImplementedError("Must be implemented by driver")
|
|
|
|
|
|
async def respond(self, response: Response):
|
|
@@ -44,7 +44,7 @@ class Rollbot(Generic[RawMsg]):
|
|
|
await self.context.request.close()
|
|
|
|
|
|
async def on_message(self, incoming: RawMsg):
|
|
|
- message = self.parse(incoming)
|
|
|
+ message = await self.parse(incoming)
|
|
|
if message.text is None:
|
|
|
return
|
|
|
|