From 39c39abad7fc730c1a48af284479fda87f09ffa7 Mon Sep 17 00:00:00 2001 From: AllfatherHatt Date: Tue, 25 Feb 2025 20:37:52 +0100 Subject: [PATCH] I'm storing stuff wrong --- reginaldCog/reginald.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/reginaldCog/reginald.py b/reginaldCog/reginald.py index 342539e..84ca341 100644 --- a/reginaldCog/reginald.py +++ b/reginaldCog/reginald.py @@ -263,7 +263,12 @@ class ReginaldCog(commands.Cog): "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: error_message = f"OpenAI Error: {e}"