From 484990564fa0f2399215559a016b0fa10aaf561d Mon Sep 17 00:00:00 2001 From: Profitroll <47523801+profitrollgame@users.noreply.github.com> Date: Sun, 4 Dec 2022 21:10:38 +0100 Subject: [PATCH] Started preparing /message command --- main.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index fb1560f..972ae3c 100644 --- a/main.py +++ b/main.py @@ -111,6 +111,13 @@ async def cmd_warn(app, msg): # ============================================================================================================================== +# Message command ============================================================================================================== +@app.on_message(~ filters.scheduled & filters.command(["message"], prefixes=["/"])) +async def cmd_message(app, msg): + pass +# ============================================================================================================================== + + # Warnings command ============================================================================================================= @app.on_message(~ filters.scheduled & filters.command(["warnings"], prefixes=["/"])) async def cmd_warnings(app, msg): @@ -368,7 +375,7 @@ async def callback_query_accept(app, clb): configSet(["link"], link.invite_link, file=fullclb[2]) logWrite(f"User {fullclb[2]} got an invite link {link.invite_link}") - + else: await app.send_message(int(fullclb[2]), locale("approved_joined", "message"))