refactor: userbot to subtree
This commit is contained in:
1 parent
1930600c40
commit
69ffd3682e
134 files changed
+224
-15451
No files matched your search
@@ -1,36 +0,0 @@
|
||||
import random
|
||||
|
||||
from pyrogram import Client, enums, filters
|
||||
from pyrogram.types import Message
|
||||
from utils.misc import modules_help, prefix
|
||||
from utils.scripts import with_reply
|
||||
|
||||
|
||||
@Client.on_message(filters.command('prus', prefix) & filters.me)
|
||||
@with_reply
|
||||
async def prussian_cmd(_, message: Message):
|
||||
words = [
|
||||
'сука',
|
||||
'нахуй',
|
||||
'блять',
|
||||
'блядь',
|
||||
'пиздец',
|
||||
'еблан',
|
||||
'уебан',
|
||||
'уебок',
|
||||
'пизда',
|
||||
'очко',
|
||||
'хуй',
|
||||
]
|
||||
splitted = message.reply_to_message.text.split()
|
||||
|
||||
for i in range(0, len(splitted), random.randint(2, 3)): # noqa: S311
|
||||
for _j in range(1, 2):
|
||||
splitted.insert(i, random.choice(words)) # noqa: S311
|
||||
|
||||
await message.edit(' '.join(splitted), parse_mode=enums.ParseMode.HTML)
|
||||
|
||||
|
||||
modules_help['perfectrussian'] = {
|
||||
'prus': 'translate your message into perfect 🇷🇺Russian',
|
||||
}
|
||||
Reference in new issue
Block a user