mirror of
https://gitlab.com/simple-stock-bots/simple-discord-stock-bot.git
synced 2025-09-12 08:34:58 +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
|
@client.event
|
||||||
async def on_message(message):
|
async def on_message(message):
|
||||||
|
|
||||||
|
if message.author == client.user:
|
||||||
|
return
|
||||||
|
|
||||||
author = message.author
|
author = message.author
|
||||||
content = message.content
|
content = message.content
|
||||||
channel = message.channel
|
channel = message.channel
|
||||||
|
Reference in New Issue
Block a user