瀏覽代碼

Some fixes

TheHamkerCat 5 年之前
父節點
當前提交
b057b1a0a7
共有 2 個文件被更改,包括 4 次插入 和 4 次删除
  1. 2 2
      wbb/modules/admin.py
  2. 2 2
      wbb/modules/quotly.py

+ 2 - 2
wbb/modules/admin.py

@@ -48,14 +48,14 @@ __HELP__ = """/ban - Ban A User
 /report | @admins - Report A Message To Admins."""
 
 
-async def list_admins(chat_id):
+async def list_admins(chat_id: int):
     list_of_admins = []
     async for member in app.iter_chat_members(chat_id, filter="administrators"):
         list_of_admins.append(member.user.id)
     return list_of_admins
 
 
-async def member_permissions(chat_id, user_id):
+async def member_permissions(chat_id: int, user_id: int):
     perms = []
     member = await app.get_chat_member(chat_id, user_id)
     if member.can_post_messages:

+ 2 - 2
wbb/modules/quotly.py

@@ -50,8 +50,8 @@ async def quotly_func(_, message: Message):
     elif len(message.command) == 2:
         arg = isArgInt(message)
         if arg[0]:
-            if arg[1] < 2 or arg[1] > 6:
-                await m.edit("Argument must be between 2-6.")
+            if arg[1] < 2 or arg[1] > 10:
+                await m.edit("Argument must be between 2-10.")
                 return
             count = arg[1]
             messages = await app.get_messages(