diff --git a/sukuinote/plugins/user_joins.py b/sukuinote/plugins/log_user_joins.py similarity index 97% rename from sukuinote/plugins/user_joins.py rename to sukuinote/plugins/log_user_joins.py index 1cd8a5b..7b5cb92 100644 --- a/sukuinote/plugins/user_joins.py +++ b/sukuinote/plugins/log_user_joins.py @@ -38,7 +38,7 @@ async def log_user_joins(client, update, users, chats): text = f"{'User Join Event' if is_join else 'User Add Event'}\n- Chat: " atext = html.escape(chats[chat_id].title) if getattr(chats[chat_id], 'username', None): - atext = f'atext' + atext = f'{atext}' text += f"{atext} [{sexy_chat_id}]\n" async with lock: if (sexy_chat_id, message.id) not in handled: @@ -50,7 +50,7 @@ async def log_user_joins(client, update, users, chats): text += f'- Adder: {sexy_user_name(users[message.from_id])}\n- Added Users:\n' for user in action.users: text += f'--- {sexy_user_name(users[user])}\n' - await slave.send_message(config['config']['log_chat'], text) + await slave.send_message(config['config']['log_chat'], text, disable_web_page_preview=True) handled.add((sexy_chat_id, message.id)) return raise ContinuePropagation