Quick start example doesn't respond to ourselves.

This commit is contained in:
Rapptz 2017-09-05 07:03:09 -04:00
parent 21fd94a449
commit 4564b46f95

View File

@ -64,6 +64,10 @@ class MyClient(discord.Client):
print('------')
async def on_message(self, message):
# don't respond to ourselves
if message.author == self.user:
return
if message.content.startswith('!test'):
counter = 0
tmp = await message.channel.send('Calculating messages...')