From 426b1550f6212c7086cfa7f076339cdf92d3b5da Mon Sep 17 00:00:00 2001 From: Profitroll <47523801+profitrollgame@users.noreply.github.com> Date: Fri, 23 Dec 2022 01:40:23 +0100 Subject: [PATCH] Initialized /cancel command --- holochecker.py | 1 + modules/commands/cancel.py | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 modules/commands/cancel.py diff --git a/holochecker.py b/holochecker.py index 73d4f23..bb70530 100644 --- a/holochecker.py +++ b/holochecker.py @@ -12,6 +12,7 @@ makedirs(f'{configGet("cache", "locations")}{sep}avatars', exist_ok=True) # Importing from modules.commands.application import * from modules.commands.applications import * +from modules.commands.cancel import * from modules.commands.label import * from modules.commands.message import * from modules.commands.nearby import * diff --git a/modules/commands/cancel.py b/modules/commands/cancel.py new file mode 100644 index 0000000..654332b --- /dev/null +++ b/modules/commands/cancel.py @@ -0,0 +1,7 @@ +from app import app +from pyrogram import filters +from modules.utils import should_quote + +@app.on_message(~ filters.scheduled & filters.command("cancel", prefixes=["/"])) +async def command_cancel(app, msg): + await msg.reply_text("Command exists.", quote=should_quote(msg)) \ No newline at end of file