diff options
Diffstat (limited to '')
| -rw-r--r-- | cogs/ai.py | 11 |
1 files changed, 7 insertions, 4 deletions
| @@ -6,7 +6,7 @@ import logging | |||
| 6 | import requests | 6 | import requests |
| 7 | import json | 7 | import json |
| 8 | from gtts import gTTS | 8 | from gtts import gTTS |
| 9 | from .music.play_utils import PlayUtils | 9 | from cogs.music.play_utils import PlayUtils |
| 10 | import io | 10 | import io |
| 11 | logger = logging.getLogger(__name__) | 11 | logger = logging.getLogger(__name__) |
| 12 | 12 | ||
| @@ -22,8 +22,8 @@ class AI(commands.Cog): | |||
| 22 | async def senator( | 22 | async def senator( |
| 23 | self, | 23 | self, |
| 24 | ctx: discord.ApplicationContext, | 24 | ctx: discord.ApplicationContext, |
| 25 | text=discord.Option(str, "message", required=True), | 25 | text: str = discord.Option(str, "message", required=True), |
| 26 | tts=discord.Option(bool, "face?", default=False) | 26 | tts: str = discord.Option(bool, "face?", default=False) |
| 27 | ): | 27 | ): |
| 28 | await ctx.defer() | 28 | await ctx.defer() |
| 29 | 29 | ||
| @@ -38,7 +38,10 @@ class AI(commands.Cog): | |||
| 38 | "messages": [ | 38 | "messages": [ |
| 39 | { | 39 | { |
| 40 | "role": "user", | 40 | "role": "user", |
| 41 | "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 | 41 | "content": "You are Senator Steaven Sperma Armstrong from Metal Gear Rising Vengeance. \ |
| 42 | You are racist and you hate other minorities. Respond in plain text, no ** or "". \ | ||
| 43 | If the message is in Polish, respond in Polish. Respond in 100 words. \ | ||
| 44 | Respond accordingly to this message: " + text | ||
| 42 | } | 45 | } |
| 43 | ], | 46 | ], |
| 44 | 47 | ||
