From 791e75cb2beeca45a6edf52b65f7e299e03b5eaf Mon Sep 17 00:00:00 2001 From: SamlonDev Date: Sat, 14 Jun 2025 18:54:02 +0200 Subject: code-style issues --- cogs/ai.py | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'cogs/ai.py') diff --git a/cogs/ai.py b/cogs/ai.py index ded74d9..d2af796 100644 --- a/cogs/ai.py +++ b/cogs/ai.py @@ -1,7 +1,9 @@ +import os + import discord -from discord.ext import commands import google.generativeai as genai -import os +from discord.ext import commands + class AI(commands.Cog): def __init__(self, bot): @@ -12,22 +14,22 @@ class AI(commands.Cog): description="SEENATOR", ) async def senator( - self, - ctx: discord.ApplicationContext, - text = discord.Option(str, "message", required=True) + self, + 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") response = model.generate_content( - "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, + "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) + def setup(bot): bot.add_cog(AI(bot)) - \ No newline at end of file -- cgit v1.2.3