Download plugins/useless.py from hf-electricianinsomniac/CodeXBotz: direct link, hf CLI and curl.
- Browser
- Download file 645 Bytes
-
https://huggingface.co/spaces/hf-electricianinsomniac/CodeXBotz/resolve/main/plugins/useless.py
- Command line
-
hf download hf://spaces/hf-electricianinsomniac/CodeXBotz/plugins/useless.py
-
curl -L -o useless.py https://huggingface.co/spaces/hf-electricianinsomniac/CodeXBotz/resolve/main/plugins/useless.py
645 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) | |