mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 09:16:19 +00:00
Update code.py
This commit is contained in:
@@ -310,6 +310,8 @@ 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()
|
||||||
|
#defer the message
|
||||||
|
await message.defer()
|
||||||
if message.guild.id != 1021872219888033903:
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user