From 45a80a0b76b7b7d26ec27a152b6343cd72b262a1 Mon Sep 17 00:00:00 2001 From: Anson Date: Tue, 8 Jan 2019 18:07:27 -0700 Subject: [PATCH] Fixed issue where bot was reading its own messages causing errors. --- stockBot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stockBot.py b/stockBot.py index d44d61a..c55e265 100644 --- a/stockBot.py +++ b/stockBot.py @@ -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