From a55807cf9184ca3099228cc1c088ee92575d5fe2 Mon Sep 17 00:00:00 2001 From: Paillat Date: Sun, 11 Dec 2022 00:31:15 +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 ad4b548..7c6ca08 100644 --- a/code/cogs/chat.py +++ b/code/cogs/chat.py @@ -42,7 +42,7 @@ class Chat (discord.Cog) : uses = c.fetchone()[0] cp.execute("SELECT premium FROM data WHERE user_id = ? AND guild_id = ?", (message.author.id, message.guild.id)) premium = cp.fetchone() - if c.fetchone()[0] >= 500 and premium != 1: + if c.fetchone()[0] >= 500 and premium is None: 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