txlyre 1 month ago
parent
commit
ccc512e756
1 changed files with 5 additions and 0 deletions
  1. 5 0
      main.py

+ 5 - 0
main.py

@@ -222,6 +222,11 @@ async def handler(event):
     except Exception:
         pass
 
+    if time.time() - pending_user.join_ts <= 1.0:
+        await pending_user.kick()
+
+        return
+
     if pending_user.message_id is None:
         return