Skip to content

Commit

Permalink
Create stats.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Badhacker98 authored Nov 21, 2024
1 parent 6713b21 commit 1b20a07
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions StringBot/stats.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from pyrogram import filters
from pyrogram.types import Message

from config import OWNER_ID
from StringBot import Bad
from StringBot.utils import get_served_users


@Bad.on_message(filters.command(["stats", "users"]) & filters.user(OWNER_ID))
async def get_stats(_, message: Message):
users = len(await get_served_users())
await message.reply_text(f"» ᴄᴜʀʀᴇɴᴛ sᴛᴀᴛs ᴏғ {Bad.name} :\n\n {users} ᴜsᴇʀs")

0 comments on commit 1b20a07

Please sign in to comment.