Add back docstring to example

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

View File

@ -40,6 +40,12 @@ Here's the code for the `EchoBot`.
```python
class EchoBot(Bot):
"""Gives back what you sent it.
In group chats, it responds to the following format.
echobot:foo
"""
def react(self, message):
if message.type == "chat":
# Reply to direct messages