Add back docstring to example
This commit is contained in:
parent
d422f88fe2
commit
93ac2620e0
@ -40,6 +40,12 @@ Here's the code for the `EchoBot`.
|
|||||||
|
|
||||||
```python
|
```python
|
||||||
class EchoBot(Bot):
|
class EchoBot(Bot):
|
||||||
|
"""Gives back what you sent it.
|
||||||
|
|
||||||
|
In group chats, it responds to the following format.
|
||||||
|
|
||||||
|
echobot:foo
|
||||||
|
"""
|
||||||
def react(self, message):
|
def react(self, message):
|
||||||
if message.type == "chat":
|
if message.type == "chat":
|
||||||
# Reply to direct messages
|
# Reply to direct messages
|
||||||
|
Reference in New Issue
Block a user