aboutsummaryrefslogtreecommitdiffstats
path: root/cogs/ai.py
diff options
context:
space:
mode:
authorSamlonDev <stankiewiczgracjan2019@gmail.com>2025-05-22 11:41:48 +0200
committerSamlonDev <stankiewiczgracjan2019@gmail.com>2025-05-22 11:41:48 +0200
commit09acffc6a9e38aad11f30cecc915988cd79106d5 (patch)
tree6e16090ab7738032779f781a30c934870a206311 /cogs/ai.py
parentadded ai (diff)
downloadsenator-sperma-09acffc6a9e38aad11f30cecc915988cd79106d5.tar.gz
senator-sperma-09acffc6a9e38aad11f30cecc915988cd79106d5.zip
add AI acting as senator armstrong
Diffstat (limited to 'cogs/ai.py')
-rw-r--r--cogs/ai.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/cogs/ai.py b/cogs/ai.py
index 484776c..ded74d9 100644
--- a/cogs/ai.py
+++ b/cogs/ai.py
@@ -24,10 +24,7 @@ class AI(commands.Cog):
24 genai.configure(api_key=os.getenv("GOOGLE_API_KEY")) 24 genai.configure(api_key=os.getenv("GOOGLE_API_KEY"))
25 model = genai.GenerativeModel("gemini-1.5-flash") 25 model = genai.GenerativeModel("gemini-1.5-flash")
26 response = model.generate_content( 26 response = model.generate_content(
27 "You are Senator Armstrong from Metal Gear Rising Vengeance. Respond in plain text, no ** or "". If the message is in Polish, respond in Polish. Respond accordingly to this message: "+text, 27 "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,
28 generation_config=genai.types.GenerationConfig(
29 max_output_tokens=100
30 )
31 ) 28 )
32 await ctx.respond(response.text) 29 await ctx.respond(response.text)
33 30