fix(userbot): add missing safone.py imports, apply ruff --unsafe-fixes
- Add missing aiohttp, PIL, BytesIO imports to safone.py (F821 runtime bugs) - Apply ruff --unsafe-fixes (27 fixes): ternary operators, .get() patterns, contextlib.suppress, enumerate(), collapsible if/else, remove .keys()
This commit is contained in:
20 files changed
+29
-57
No files matched your search
@@ -40,10 +40,7 @@ async def kang(client: Client, message: types.Message):
|
||||
return
|
||||
|
||||
pack = message.command[1]
|
||||
if len(message.command) >= 3:
|
||||
emoji = message.command[2]
|
||||
else:
|
||||
emoji = '✨'
|
||||
emoji = message.command[2] if len(message.command) >= 3 else '✨'
|
||||
|
||||
await client.unblock_user('@stickers')
|
||||
await interact_with(await client.send_message('@stickers', '/cancel', parse_mode=enums.ParseMode.MARKDOWN))
|
||||
|
||||
Reference in new issue
Block a user