about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMounderFod <mounderfod@gmail.com>2021-08-29 09:26:53 +0000
committerMounderFod <mounderfod@gmail.com>2021-08-29 09:26:53 +0000
commite94cf6363469c0fc9b8de58a599d63f1bc8910c4 (patch)
treec79d90ff0d51bbdf1a8af6bf94ae9c16aeb65a99
parentf8c68fa2ffd9bc964de186014c218411bf5403f0 (diff)
downloadtiny-potato-bot-e94cf6363469c0fc9b8de58a599d63f1bc8910c4.tar.gz
It is bot, not client!
-rw-r--r--bot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot.py b/bot.py
index 8601e9a..cbaafd9 100644
--- a/bot.py
+++ b/bot.py
@@ -18,7 +18,7 @@ async def on_command_error(ctx, error):
     
 @bot.event
 async def on_message(message):
-    if client.user.mentioned_in(message):
+    if bot.user.mentioned_in(message):
         ctx = await bot.get_context(message)
         ctx.reply("<irritatered:766468833564688395>")
     await bot.process_commands(message)