refactor: extract userbot to standalone repo, add as git submodule
Deploy to Server / deploy (push) Has been cancelled
Deploy to Server / deploy (push) Has been cancelled
userbot now lives at ssh://git@gitssh.forust.xyz:2221/forust/userbot.git and is included in homelab as a submodule at userbot/
This commit is contained in:
134 files changed
+4
-15257
No files matched your search
@@ -1,16 +0,0 @@
|
||||
from random import randint
|
||||
|
||||
from pyrogram import Client, enums, filters
|
||||
from pyrogram.types import Message
|
||||
from utils.misc import modules_help, prefix
|
||||
|
||||
|
||||
@Client.on_message(filters.command('durov', prefix) & filters.me)
|
||||
async def durov(_, message: Message):
|
||||
await message.edit(
|
||||
f'<b>Random post from channel: https://t.me/durov/{randint(21, 36500)}</b>', # noqa: S311
|
||||
parse_mode=enums.ParseMode.HTML,
|
||||
)
|
||||
|
||||
|
||||
modules_help['durov'] = {'durov': 'Send random post from durov channel'}
|
||||
Reference in new issue
Block a user