Ver Fonte

SUDOERS filter in .ping of userbot (#170)

Anubhav há 4 anos atrás
pai
commit
b15a7a46a5
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      wbb/modules/misc.py

+ 2 - 1
wbb/modules/misc.py

@@ -102,7 +102,8 @@ PING_LOCK = Lock()
 
 
 @app2.on_message(
-    filters.command("ping", prefixes=USERBOT_PREFIX)
+    SUDOERS
+    & filters.command("ping", prefixes=USERBOT_PREFIX)
     & ~filters.edited
 )
 @app.on_message(filters.command("ping") & ~filters.edited)