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:
@@ -20,18 +20,17 @@
|
||||
|
||||
from pyrogram import Client, filters
|
||||
from pyrogram.types import Message
|
||||
|
||||
from utils.misc import modules_help, prefix
|
||||
|
||||
|
||||
@Client.on_message(filters.command(["say", "s"], prefix) & filters.me)
|
||||
@Client.on_message(filters.command(['say', 's'], prefix) & filters.me)
|
||||
async def say(_, message: Message):
|
||||
if len(message.command) == 1:
|
||||
return
|
||||
command = " ".join(message.command[1:])
|
||||
await message.edit(f"<code>{command}</code>")
|
||||
command = ' '.join(message.command[1:])
|
||||
await message.edit(f'<code>{command}</code>')
|
||||
|
||||
|
||||
modules_help["say"] = {
|
||||
"say [command]*": "Send message that won't be interpreted by userbot",
|
||||
modules_help['say'] = {
|
||||
'say [command]*': "Send message that won't be interpreted by userbot",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user