From 0030c16d37191ae7d10dfa19a7ff0987f255dc6c Mon Sep 17 00:00:00 2001 From: Paillat Date: Sat, 10 Dec 2022 01:32:46 +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 b13bfaa..dcbdb1c 100644 --- a/code/cogs/chat.py +++ b/code/cogs/chat.py @@ -40,7 +40,7 @@ class Chat (discord.Cog) : #check if the bot hasn't been used more than 5000 times in the last 24 hours (uses_count_today) c.execute("SELECT uses_count_today FROM data WHERE guild_id = ?", (message.guild.id,)) if c.fetchone()[0] >= max_uses: - debug("The bot has been used more than 4000 times in the last 24 hours in this guild") + 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 5000 times in the last 24 hours in this guild. Please try again in 24h.") return #add 1 to the uses_count_today