소스 검색

Gban fixed for bots

TheHamkerCat 5 년 전
부모
커밋
f86ddd9aa1
1개의 변경된 파일과 2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      wbb/modules/greetings.py

+ 2 - 2
wbb/modules/greetings.py

@@ -19,11 +19,11 @@ async def welcome(_, message: Message):
     """Mute new member and send message with button"""
     for member in message.new_chat_members:
         try:
-            if member.is_bot:
-                continue  # ignore bots
             if await is_gbanned_user(member.id):
                 await message.chat.kick_member(member.id)
                 continue
+            if member.is_bot:
+                continue  # ignore bots
             text = (f"Welcome, {(member.mention())}\n**Are you human?**\n"
                     "You will be removed from this chat if you are not verified "
                     f"in {WELCOME_DELAY_KICK_SEC} seconds")