From edff41f3468996dad5e66d34ac8ab1f5a238751f Mon Sep 17 00:00:00 2001 From: salmonik Date: Thu, 15 Jan 2026 14:37:22 +0100 Subject: minor improvements --- cogs/ai.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'cogs/ai.py') diff --git a/cogs/ai.py b/cogs/ai.py index a3c8201..f527c5b 100644 --- a/cogs/ai.py +++ b/cogs/ai.py @@ -6,7 +6,7 @@ import logging import requests import json from gtts import gTTS -from .music.play_utils import PlayUtils +from cogs.music.play_utils import PlayUtils import io logger = logging.getLogger(__name__) @@ -22,8 +22,8 @@ class AI(commands.Cog): async def senator( self, ctx: discord.ApplicationContext, - text=discord.Option(str, "message", required=True), - tts=discord.Option(bool, "face?", default=False) + text: str = discord.Option(str, "message", required=True), + tts: str = discord.Option(bool, "face?", default=False) ): await ctx.defer() @@ -38,7 +38,10 @@ class AI(commands.Cog): "messages": [ { "role": "user", - "content": "You are Senator Steaven Sperma Armstrong from Metal Gear Rising Vengeance. You are racist and you hate other minorities. 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 + "content": "You are Senator Steaven Sperma Armstrong from Metal Gear Rising Vengeance. \ + You are racist and you hate other minorities. 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 } ], -- cgit v1.2.3