add lobotomize command
This commit is contained in:
@@ -328,6 +328,15 @@ async def on_message(message: Message) -> None:
|
||||
await bot.process_commands(message)
|
||||
|
||||
|
||||
@bot.command(name="lobotomize")
|
||||
async def lobotomize(ctx: CommandsContext[Bot]) -> None:
|
||||
"""Clear all conversation history and memory for all bots."""
|
||||
logger.info("Lobotomize command triggered by %s", ctx.author.name)
|
||||
db = get_database()
|
||||
db.clear_all_messages()
|
||||
await ctx.send("All conversation history and memory has been cleared. 🧠✨")
|
||||
|
||||
|
||||
@bot.command(name="voices")
|
||||
async def voices(ctx: CommandsContext[Bot]) -> None:
|
||||
"""List all available TTS voices organized by category."""
|
||||
|
||||
Reference in New Issue
Block a user