mirror of
https://gitlab.com/simple-stock-bots/simple-discord-stock-bot.git
synced 2025-09-12 16:44:59 +00:00
Fixed issue where bot was reading its own messages causing errors.
This commit is contained in:
@@ -20,6 +20,10 @@ async def on_ready():
|
||||
|
||||
@client.event
|
||||
async def on_message(message):
|
||||
|
||||
if message.author == client.user:
|
||||
return
|
||||
|
||||
author = message.author
|
||||
content = message.content
|
||||
channel = message.channel
|
||||
|
Reference in New Issue
Block a user