Update chat.py

This commit is contained in:
Paillat
2022-12-11 00:35:42 +01:00
committed by GitHub
parent ebcdfe8234
commit 82084989bb

View File

@@ -44,7 +44,7 @@ class Chat (discord.Cog) :
try: premium = cp.fetchone()[0] try: premium = cp.fetchone()[0]
except: premium = 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.") 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.") 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 return