chore(userbot): apply ruff check --fix and ruff format
- ruff check --fix: 210 auto-fixed errors (import sorting, trailing whitespace, unused imports, f-string fixups, deprecated annotations) - ruff format: 104 files reformatted to consistent style - 268 non-auto-fixable issues remain (S113 requests timeout, etc.)
This commit is contained in:
@@ -1,33 +1,33 @@
|
||||
import asyncio, random
|
||||
from pyrogram import Client, filters, enums
|
||||
from pyrogram.raw import functions
|
||||
import random
|
||||
|
||||
from pyrogram import Client, enums, filters
|
||||
from pyrogram.types import Message
|
||||
from utils.misc import modules_help, prefix
|
||||
from utils.scripts import format_exc
|
||||
|
||||
emojis = [
|
||||
"👍",
|
||||
"👎",
|
||||
"❤️",
|
||||
"🔥",
|
||||
"🥰",
|
||||
"👏",
|
||||
"😁",
|
||||
"🤔",
|
||||
"🤯",
|
||||
"😱",
|
||||
"🤬",
|
||||
"😢",
|
||||
"🎉",
|
||||
"🤩",
|
||||
"🤮",
|
||||
"💩",
|
||||
'👍',
|
||||
'👎',
|
||||
'❤️',
|
||||
'🔥',
|
||||
'🥰',
|
||||
'👏',
|
||||
'😁',
|
||||
'🤔',
|
||||
'🤯',
|
||||
'😱',
|
||||
'🤬',
|
||||
'😢',
|
||||
'🎉',
|
||||
'🤩',
|
||||
'🤮',
|
||||
'💩',
|
||||
]
|
||||
|
||||
|
||||
@Client.on_message(filters.command("reactspam", prefix) & filters.me)
|
||||
@Client.on_message(filters.command('reactspam', prefix) & filters.me)
|
||||
async def reactspam(client: Client, message: Message):
|
||||
await message.edit(f"<b>One moment...</b>", parse_mode=enums.ParseMode.HTML)
|
||||
await message.edit('<b>One moment...</b>', parse_mode=enums.ParseMode.HTML)
|
||||
try:
|
||||
selected_emojis = random.sample(emojis, 3)
|
||||
print(selected_emojis)
|
||||
@@ -41,4 +41,4 @@ async def reactspam(client: Client, message: Message):
|
||||
return await message.edit_text(format_exc(e))
|
||||
|
||||
|
||||
modules_help["reactionspam"] = {"reactspam [amount]* [emoji]*": "spam reactions"}
|
||||
modules_help['reactionspam'] = {'reactspam [amount]* [emoji]*': 'spam reactions'}
|
||||
|
||||
Reference in New Issue
Block a user