Browse Source

Fix echo example to not infinitely loop.

pull/8/head
Rapptz 10 years ago
parent
commit
bcee23b707
  1. 3
      examples/echo.py

3
examples/echo.py

@ -11,6 +11,7 @@ def on_ready():
@client.event
def on_message(message):
client.send_message(message.channel, message.content)
if message.author.id != client.user.id:
client.send_message(message.channel, message.content)
client.run()

Loading…
Cancel
Save