test smart garf and fix weather error log

This commit is contained in:
2026-01-04 06:13:15 -06:00
parent 34f34e3def
commit 68696e25f0
2 changed files with 5 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ from garfpy import (
)
gapikey = config.GIF_TOKEN
# gapikey = config.GIF_TOKEN
garfkey = config.GARFBOT_TOKEN
txtmodel = config.TXT_MODEL
imgmodel = config.IMG_MODEL
@@ -118,6 +118,9 @@ async def garfbot_weather(ctx, *, location):
@garfbot.command(name="chat")
async def garfchat(ctx, *, prompt):
if "is this true" in prompt.lower():
messages = [msg async for msg in ctx.channel.history(limit=2)]
prompt = messages[1].content
answer = await garfield.generate_chat(prompt)
logger.info(
f"Chat Request - User: {ctx.author.name}, Server: {ctx.guild.name}, Prompt: {prompt}"