From 836ad5169af3e8d0cc7eb83c4a35a60c85cd179c Mon Sep 17 00:00:00 2001 From: Paillat Date: Mon, 19 Dec 2022 20:30:47 +0100 Subject: [PATCH] Update chat.py --- code/cogs/chat.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/cogs/chat.py b/code/cogs/chat.py index 00d563f..dd95cd9 100644 --- a/code/cogs/chat.py +++ b/code/cogs/chat.py @@ -106,6 +106,7 @@ async def on_message_process(message: discord.Message, self: Chat): #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,)) uses = c.fetchone()[0] + print(uses) try: cp.execute("SELECT premium FROM data WHERE guild_id = ?", (message.guild.id,)) premium = cp.fetchone()[0] @@ -198,6 +199,7 @@ async def on_message_process(message: discord.Message, self: Chat): #prompt += "Botator:" #get the actual time in a variable now = datetime.now() + print(now.strftime("%Y-%m-%d %H:%M:%S")) #add the time to the prompt in the strftime("%Y-%m-%d %H:%M:%S") format prompt = prompt + f"{self.bot.user.name} ({now.strftime('%Y-%m-%d %H:%M:%S')}):" print(prompt)