From 82084989bbb1264874d555d79418002e37d05fee Mon Sep 17 00:00:00 2001 From: Paillat Date: Sun, 11 Dec 2022 00:35:42 +0100 Subject: [PATCH] Update chat.py --- code/cogs/chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/cogs/chat.py b/code/cogs/chat.py index f618412..2fec42f 100644 --- a/code/cogs/chat.py +++ b/code/cogs/chat.py @@ -44,7 +44,7 @@ class Chat (discord.Cog) : try: premium = cp.fetchone()[0] except: premium = 0 - if c.fetchone()[0] >= 500 and premium == 0: + if uses >= 500 and premium == 0: debug(f"The bot has been used more than {max_uses} times in the last 24 hours in this guild. Please try again in 24h.") await message.channel.send("The bot has been used more than 500 times in the last 24 hours in this guild. Please try again in 24h.") return