From 9e46581f863f63787f9c4fdc624af1a57224eafe Mon Sep 17 00:00:00 2001 From: Entarno54 Date: Tue, 13 May 2025 13:55:31 +0700 Subject: [PATCH] Fixed !clear --- commands/ai.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/commands/ai.py b/commands/ai.py index 81533a2..427c0cf 100644 --- a/commands/ai.py +++ b/commands/ai.py @@ -3,6 +3,8 @@ from nextcord.ext import commands from events import ai +from userinfo import parsedinfo + class AICommands(commands.Cog): def __init__(self, bot): self.client = bot @@ -15,8 +17,9 @@ class AICommands(commands.Cog): return await ctx.reply("You don't have any AI data.") else: userIndex = ai.SquogData.index(user) - print(userIndex) - ai.SquogData.remove(userIndex) + + parsedinfo.parsed["guild"].remove(userIndex) + await ai.flush() await ctx.reply("Cleared your AI data.") return None