I'm storing stuff wrong

This commit is contained in:
AllfatherHatt 2025-02-25 20:37:52 +01:00
parent 05e1842000
commit 39c39abad7

View File

@ -263,7 +263,12 @@ class ReginaldCog(commands.Cog):
"a void of information. I shall endeavor to be more verbose next time." "a void of information. I shall endeavor to be more verbose next time."
) )
return summary_content # ✅ Ensure only this new summary is stored, no nesting!
return {
"timestamp": datetime.datetime.now().strftime("%Y-%m-%d %H:%M"),
"topics": self.extract_topics_from_summary(summary_content),
"summary": summary_content
}
except OpenAIError as e: except OpenAIError as e:
error_message = f"OpenAI Error: {e}" error_message = f"OpenAI Error: {e}"