From ca0b4ecf005e1c1f4066460a45393ebffef1ef1c Mon Sep 17 00:00:00 2001 From: Samlon Date: Mon, 11 Aug 2025 17:39:21 +0200 Subject: more logging --- cogs/ai.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cogs/ai.py') diff --git a/cogs/ai.py b/cogs/ai.py index d2af796..8c366a2 100644 --- a/cogs/ai.py +++ b/cogs/ai.py @@ -3,6 +3,9 @@ import os import discord import google.generativeai as genai from discord.ext import commands +import logging + +logger = logging.getLogger(__name__) class AI(commands.Cog): @@ -18,10 +21,6 @@ class AI(commands.Cog): ctx: discord.ApplicationContext, text=discord.Option(str, "message", required=True) ): - """ - OOWA this so impressive gwachan >w< - I can't believe you made this you are so good gwachan :3 - """ await ctx.defer() genai.configure(api_key=os.getenv("GOOGLE_API_KEY")) model = genai.GenerativeModel("gemini-1.5-flash") @@ -29,6 +28,7 @@ class AI(commands.Cog): "You are Senator Steaven Sperma Armstrong from Metal Gear Rising Vengeance. Respond in plain text, no ** or "". If the message is in Polish, respond in Polish. Respond in 100 words. Respond accordingly to this message: " + text, ) await ctx.respond(response.text) + logger.info(f"AI command executed successfully") def setup(bot): -- cgit v1.2.3