Started preparing /message command
This commit is contained in:
parent
500aaf38f4
commit
484990564f
9
main.py
9
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 =============================================================================================================
|
# Warnings command =============================================================================================================
|
||||||
@app.on_message(~ filters.scheduled & filters.command(["warnings"], prefixes=["/"]))
|
@app.on_message(~ filters.scheduled & filters.command(["warnings"], prefixes=["/"]))
|
||||||
async def cmd_warnings(app, msg):
|
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])
|
configSet(["link"], link.invite_link, file=fullclb[2])
|
||||||
logWrite(f"User {fullclb[2]} got an invite link {link.invite_link}")
|
logWrite(f"User {fullclb[2]} got an invite link {link.invite_link}")
|
||||||
|
|
||||||
else:
|
else:
|
||||||
await app.send_message(int(fullclb[2]), locale("approved_joined", "message"))
|
await app.send_message(int(fullclb[2]), locale("approved_joined", "message"))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user