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,22 +1,23 @@
|
||||
from pyrogram import Client, filters
|
||||
from pyrogram.types import Message
|
||||
|
||||
from utils.misc import modules_help, prefix
|
||||
import asyncio, random
|
||||
|
||||
|
||||
@Client.on_message(filters.command("kokodrilo", prefix) & filters.me)
|
||||
async def kokodrilo_explodando(_, message: Message):
|
||||
amount = 1
|
||||
if len(message.command) > 1:
|
||||
amount = int(message.command[1])
|
||||
for _ in range(amount):
|
||||
await message.edit("🐊")
|
||||
await asyncio.sleep(random.uniform(1, 2.5))
|
||||
await message.edit("💥")
|
||||
await asyncio.sleep(1.8)
|
||||
|
||||
|
||||
modules_help["kokodrilo_explodando"] = {
|
||||
"kokodrilo [number of explosions]": "<b>kOkOdRiLo ExPlOrAdO</b>",
|
||||
}
|
||||
import asyncio
|
||||
import random
|
||||
|
||||
from pyrogram import Client, filters
|
||||
from pyrogram.types import Message
|
||||
from utils.misc import modules_help, prefix
|
||||
|
||||
|
||||
@Client.on_message(filters.command('kokodrilo', prefix) & filters.me)
|
||||
async def kokodrilo_explodando(_, message: Message):
|
||||
amount = 1
|
||||
if len(message.command) > 1:
|
||||
amount = int(message.command[1])
|
||||
for _ in range(amount):
|
||||
await message.edit('🐊')
|
||||
await asyncio.sleep(random.uniform(1, 2.5))
|
||||
await message.edit('💥')
|
||||
await asyncio.sleep(1.8)
|
||||
|
||||
|
||||
modules_help['kokodrilo_explodando'] = {
|
||||
'kokodrilo [number of explosions]': '<b>kOkOdRiLo ExPlOrAdO</b>',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user