Update code.py

This commit is contained in:
Paillat
2022-11-30 17:20:41 +01:00
parent 3fe1341570
commit cbdd0b291d

View File

@@ -258,6 +258,7 @@ async def on_message(message):
#add 1 to the uses_count_today #add 1 to the uses_count_today
#show that the bot is typing #show that the bot is typing
await message.channel.trigger_typing() await message.channel.trigger_typing()
if message.guild.id != 1021872219888033903:
c.execute("UPDATE data SET uses_count_today = uses_count_today + 1 WHERE guild_id = ?", (message.guild.id,)) c.execute("UPDATE data SET uses_count_today = uses_count_today + 1 WHERE guild_id = ?", (message.guild.id,))
#get the api key from the database #get the api key from the database
c.execute("SELECT api_key FROM data WHERE guild_id = ?", (message.guild.id,)) c.execute("SELECT api_key FROM data WHERE guild_id = ?", (message.guild.id,))