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:
+4
-5
@@ -17,16 +17,15 @@
|
||||
|
||||
from pyrogram import Client, filters
|
||||
from pyrogram.types import Message
|
||||
|
||||
from utils.misc import modules_help, prefix
|
||||
|
||||
|
||||
@Client.on_message(filters.command(["ping", "p"], prefix) & filters.me)
|
||||
@Client.on_message(filters.command(['ping', 'p'], prefix) & filters.me)
|
||||
async def ping(client: Client, message: Message):
|
||||
latency = await client.ping()
|
||||
await message.edit(f"<b>Pong! {latency}ms</b>")
|
||||
await message.edit(f'<b>Pong! {latency}ms</b>')
|
||||
|
||||
|
||||
modules_help["ping"] = {
|
||||
"ping": "Check ping to Telegram servers",
|
||||
modules_help['ping'] = {
|
||||
'ping': 'Check ping to Telegram servers',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user