Fixed !clear
This commit is contained in:
parent
84bf3e39f0
commit
9e46581f86
@ -3,6 +3,8 @@ from nextcord.ext import commands
|
|||||||
|
|
||||||
from events import ai
|
from events import ai
|
||||||
|
|
||||||
|
from userinfo import parsedinfo
|
||||||
|
|
||||||
class AICommands(commands.Cog):
|
class AICommands(commands.Cog):
|
||||||
def __init__(self, bot):
|
def __init__(self, bot):
|
||||||
self.client = bot
|
self.client = bot
|
||||||
@ -15,8 +17,9 @@ class AICommands(commands.Cog):
|
|||||||
return await ctx.reply("You don't have any AI data.")
|
return await ctx.reply("You don't have any AI data.")
|
||||||
else:
|
else:
|
||||||
userIndex = ai.SquogData.index(user)
|
userIndex = ai.SquogData.index(user)
|
||||||
print(userIndex)
|
|
||||||
ai.SquogData.remove(userIndex)
|
parsedinfo.parsed["guild"].remove(userIndex)
|
||||||
|
|
||||||
await ai.flush()
|
await ai.flush()
|
||||||
await ctx.reply("Cleared your AI data.")
|
await ctx.reply("Cleared your AI data.")
|
||||||
return None
|
return None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user