Add back docstring to example

This commit is contained in:
2021-01-13 14:51:07 +01:00
parent d422f88fe2
commit 93ac2620e0

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