Explorar el Código

SUDOERS filter in .ping of userbot (#170)

Anubhav hace 4 años
padre
commit
b15a7a46a5
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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)