소스 검색

Fixed module count

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

+ 2 - 6
wbb/modules/global_stats.py

@@ -91,21 +91,17 @@ async def global_stats(_, message):
     
     # Modules info
     modules_count = len(ALL_MODULES)
-    all_mods_help = ""
-    for module in ALL_MODULES:
-        a = __import__(module)
-        all_mods_help += f"{a.__HELP__}\n"
-    commands_count = len(all_mods_help.splitlines())
+
     msg = f"""
 
 **Global Stats of {BOT_NAME}**:
+**{modules_count}** Modules Loaded
 **{gbans}** Globally banned users.
 **{filters_count}** Filters, Across **{filters_chats_count}** chats.
 **{notes_count}** Notes, Across **{notes_chats_count}** chats.
 **{warns_count}** Warns, Across **{warns_chats_count}** chats.
 **{karmas_count}** Karma, Across **{karmas_chats_count}** chats.
 **{total_users}** Users, Across **{len(served_chats)}** chats.
-**{commands_count}** Commands, Across **{modules_count}** Modules.
 **{developers}** Developers And **{commits}** Commits On **[Github]({rurl})**."""
 
     await m.edit(msg, disable_web_page_preview=True)