Just a bracket added
This commit is contained in:
parent
3335dcb326
commit
edadff30d4
2
main.py
2
main.py
@ -333,7 +333,7 @@ async def filter_join(app, member):
|
|||||||
if (path.exists(f"{configGet('data', 'locations')}{sep}users{sep}{member.from_user.id}.json") and jsonLoad(f"{configGet('data', 'locations')}{sep}users{sep}{member.from_user.id}.json")["approved"]) or (member.from_user.id in configGet("admins")) or (member.from_user.id == configGet("owner")):
|
if (path.exists(f"{configGet('data', 'locations')}{sep}users{sep}{member.from_user.id}.json") and jsonLoad(f"{configGet('data', 'locations')}{sep}users{sep}{member.from_user.id}.json")["approved"]) or (member.from_user.id in configGet("admins")) or (member.from_user.id == configGet("owner")):
|
||||||
if configGet("link", file=str(member.from_user.id)) == member.invite_link.invite_link:
|
if configGet("link", file=str(member.from_user.id)) == member.invite_link.invite_link:
|
||||||
return
|
return
|
||||||
await app.send_message(reply_markup=InlineKeyboardMarkup(
|
await app.send_message(configGet("admin_group"), f"User **{member.from_user.first_name}** (`{member.from_user.id}`) the chat not with his personal link", reply_markup=InlineKeyboardMarkup(
|
||||||
[
|
[
|
||||||
[
|
[
|
||||||
InlineKeyboardButton(text="Allow usage", callback_data=f"sus_allow_{member.from_user.id}")
|
InlineKeyboardButton(text="Allow usage", callback_data=f"sus_allow_{member.from_user.id}")
|
||||||
|
Reference in New Issue
Block a user