Fix attribute

This commit is contained in:
Luke Murphy 2021-01-13 14:47:54 +01:00
parent bcc84fa19e
commit d422f88fe2
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -48,7 +48,7 @@ class EchoBot(Bot):
if message.type == "groupchat" and "echobot" in message.body:
# Parse and reply group chat messages
_, to_echo = message.body.split(":")
self.reply(to_echo, room=message.source)
self.reply(to_echo, room=message.room)
```
## All examples