Spaces:
Paused
Paused
Download plugins/useless.py from dragxd/File-Sharing-Bot: direct link, hf CLI and curl.
- Browser
- Download file 789 Bytes
-
https://huggingface.co/spaces/dragxd/File-Sharing-Bot/resolve/main/plugins/useless.py
- Command line
-
hf download hf://spaces/dragxd/File-Sharing-Bot/plugins/useless.py
-
curl -L -o useless.py https://huggingface.co/spaces/dragxd/File-Sharing-Bot/resolve/main/plugins/useless.py
789 Bytes
| from bot import Bot | |
| from pyrogram.types import Message | |
| from pyrogram import filters | |
| from config import ADMINS, BOT_STATS_TEXT, USER_REPLY_TEXT | |
| from datetime import datetime | |
| from helper_func import get_readable_time | |
| async def stats(bot: Bot, message: Message): | |
| now = datetime.now() | |
| delta = now - bot.uptime | |
| time = get_readable_time(delta.seconds) | |
| await message.reply(BOT_STATS_TEXT.format(uptime=time)) | |
| async def useless(_,message: Message): | |
| if USER_REPLY_TEXT: | |
| await message.reply(USER_REPLY_TEXT) | |
| # Jishu Developer | |
| # Don't Remove Credit 🥺 | |
| # Telegram Channel @Madflix_Bots | |
| # Backup Channel @JishuBotz | |
| # Developer @JishuDeveloper | |