From 5fe985e94933fa93f5b72ae5b293949683f290ae Mon Sep 17 00:00:00 2001 From: allinoneallinone00 Date: Mon, 29 Apr 2024 10:46:20 +0000 Subject: [PATCH] Add restart after chatbot off --- modules/chatbot.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/chatbot.py b/modules/chatbot.py index 4f3dd96..12cbdfb 100644 --- a/modules/chatbot.py +++ b/modules/chatbot.py @@ -90,15 +90,16 @@ async def chatbot(client: Client, message: Message): @Client.on_message(filters.command("chatoff", prefix) & filters.me) async def chatoff(client: Client, message: Message): db.remove("core.chatbot", "chatai_users") - await message.reply_text("ChatBot is off now") + restart() @Client.on_message(filters.command("listai", prefix) & filters.me) async def listai(client: Client, message: Message): await message.edit_text(f"User ID's Currently in AI ChatBot List:\n {chatai_users}") modules_help["chatbot"] = { - "addai": "Add A user to AI ChatBot List", - "remai": "Remove A user from AI ChatBot List", + "addai [user_id]*": "Add A user to AI ChatBot List", + "remai [user_id]*": "Remove A user from AI ChatBot List", + "listai": "List A user from AI ChatBot List", "chatoff": "Turn off AI ChatBot" } \ No newline at end of file