mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-09 15:29:57 +00:00
Fix echo example to not infinitely loop.
This commit is contained in:
parent
8c1aa2ccc5
commit
bcee23b707
@ -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…
x
Reference in New Issue
Block a user