Spoilers, major command system improvements #4
@ -2,7 +2,6 @@
|
|||||||
"locale": "uk",
|
"locale": "uk",
|
||||||
"debug": false,
|
"debug": false,
|
||||||
"owner": 0,
|
"owner": 0,
|
||||||
"bot_id": 0,
|
|
||||||
"age_allowed": 0,
|
"age_allowed": 0,
|
||||||
"api": "http://example.com",
|
"api": "http://example.com",
|
||||||
"inline_preview_count": 7,
|
"inline_preview_count": 7,
|
||||||
|
@ -120,7 +120,7 @@ async def any_stage(app: Client, msg: Message):
|
|||||||
@app.on_message(~ filters.scheduled & filters.group)
|
@app.on_message(~ filters.scheduled & filters.group)
|
||||||
async def message_in_group(app: Client, msg: Message):
|
async def message_in_group(app: Client, msg: Message):
|
||||||
if (msg.chat is not None) and (msg.via_bot is not None):
|
if (msg.chat is not None) and (msg.via_bot is not None):
|
||||||
if (msg.via_bot.id == configGet("bot_id")) and (msg.chat.id == configGet("destination_group")):
|
if (msg.via_bot.id == (await app.get_me()).id) and (msg.chat.id == configGet("destination_group")):
|
||||||
if configGet("remove_application_time") > 0:
|
if configGet("remove_application_time") > 0:
|
||||||
logWrite(f"User {msg.from_user.id} requested application in destination group, removing in {configGet('remove_application_time')} minutes")
|
logWrite(f"User {msg.from_user.id} requested application in destination group, removing in {configGet('remove_application_time')} minutes")
|
||||||
await asyncio.sleep(configGet("remove_application_time")*60)
|
await asyncio.sleep(configGet("remove_application_time")*60)
|
||||||
|
Reference in New Issue
Block a user