|
@@ -32,13 +32,11 @@ from wbb.utils.dbfunctions import (get_blacklist_filters_count,
|
|
|
get_filters_count, get_gbans_count,
|
|
get_filters_count, get_gbans_count,
|
|
|
get_karmas_count, get_notes_count,
|
|
get_karmas_count, get_notes_count,
|
|
|
get_served_chats, get_served_users,
|
|
get_served_chats, get_served_users,
|
|
|
- get_warns_count,
|
|
|
|
|
- remove_served_chat)
|
|
|
|
|
|
|
+ get_warns_count, remove_served_chat,
|
|
|
|
|
+ get_rss_feeds_count)
|
|
|
from wbb.utils.http import get
|
|
from wbb.utils.http import get
|
|
|
from wbb.utils.inlinefuncs import keywords_list
|
|
from wbb.utils.inlinefuncs import keywords_list
|
|
|
|
|
|
|
|
-""" CHAT WATCHER IS IN filters.py"""
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
@app.on_message(
|
|
@app.on_message(
|
|
|
filters.command("gstats")
|
|
filters.command("gstats")
|
|
@@ -105,6 +103,9 @@ async def global_stats(_, message):
|
|
|
for developer in developers:
|
|
for developer in developers:
|
|
|
commits += developer["contributions"]
|
|
commits += developer["contributions"]
|
|
|
developers = len(developers)
|
|
developers = len(developers)
|
|
|
|
|
+
|
|
|
|
|
+ # Rss feeds
|
|
|
|
|
+ rss_count = await get_rss_feeds_count()
|
|
|
# Modules info
|
|
# Modules info
|
|
|
modules_count = len(ALL_MODULES)
|
|
modules_count = len(ALL_MODULES)
|
|
|
|
|
|
|
@@ -112,6 +113,7 @@ async def global_stats(_, message):
|
|
|
**Global Stats of {BOT_NAME}**:
|
|
**Global Stats of {BOT_NAME}**:
|
|
|
**{modules_count}** Modules Loaded
|
|
**{modules_count}** Modules Loaded
|
|
|
**{len(keywords_list)}** Inline Modules Loaded.
|
|
**{len(keywords_list)}** Inline Modules Loaded.
|
|
|
|
|
+**{rss_count}** Active RSS Feeds.
|
|
|
**{gbans}** Globally banned users.
|
|
**{gbans}** Globally banned users.
|
|
|
**{filters_count}** Filters, Across **{filters_chats_count}** chats.
|
|
**{filters_count}** Filters, Across **{filters_chats_count}** chats.
|
|
|
**{blacklist_filters_count}** Blacklist Filters, Across **{blacklist_filters_chats_count}** chats.
|
|
**{blacklist_filters_count}** Blacklist Filters, Across **{blacklist_filters_chats_count}** chats.
|