Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
xditya committed Feb 26, 2021
1 parent 066275a commit 339d0d8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
12 changes: 2 additions & 10 deletions plugins/_inline.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,11 +463,7 @@ def paginate_help(page_number, loaded_plugins, prefix):
else:
pairs = pairs[
modulo_page * number_of_rows : number_of_rows * (modulo_page + 1)
] + [
(
Button.inline("-Bᴀᴄᴋ-", data="open"),
)
]
] + [(Button.inline("-Bᴀᴄᴋ-", data="open"),)]
return pairs


Expand Down Expand Up @@ -514,9 +510,5 @@ def paginate_addon(page_number, loaded_plugins, prefix):
else:
pairs = pairs[
modulo_page * number_of_rows : number_of_rows * (modulo_page + 1)
] + [
(
Button.inline("-Bᴀᴄᴋ-", data="open"),
)
]
] + [(Button.inline("-Bᴀᴄᴋ-", data="open"),)]
return pairs
6 changes: 4 additions & 2 deletions plugins/admintools.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ async def pin(msg):
except BaseException:
pass


@ultroid_cmd(
pattern="unpin($| (.*))",
)
Expand Down Expand Up @@ -404,7 +404,9 @@ async def _(e):
async for x in e.client.iter_messages(e.chat_id, from_user=input):
await e.client.delete_messages(e.chat_id, x)
nos += 1
await xx.edit(f"**Purged **`{nos}`** msgs of **[{input}](tg://user?id={input})")
await xx.edit(
f"**Purged **`{nos}`** msgs of **[{input}](tg://user?id={input})"
)
except ValueError:
return await eod(xx, str(er), time=5)
else:
Expand Down
6 changes: 5 additions & 1 deletion plugins/fedutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

bot = "@MissRose_bot"


@ultroid_cmd(pattern="superfban ?(.*)")
async def _(event):
msg = await eor(event, "Starting a Mass-FedBan...")
Expand Down Expand Up @@ -331,6 +332,7 @@ async def _(event):
f"SuperUnFBan Completed.\nTotal Feds - {len(fedlist)}.\nExcluded - {exCount}.\n Affected {len(fedList) - exCount} feds.\n#TB"
)


@ultroid_cmd(pattern="fstat ?(.*)")
async def _(event):
ok = await event.edit("`Checking...`")
Expand Down Expand Up @@ -363,7 +365,7 @@ async def _(event):
event.chat_id,
audio,
caption=f"List of feds {user} has been banned in.\n\nCollected using Ultroid.",
link_preview=False
link_preview=False,
)
else:
await ultroid.send_message(event.chat_id, audio.text)
Expand All @@ -372,6 +374,7 @@ async def _(event):
except YouBlockedUserError:
await ok.edit("**Error**\n `Unblock` @MissRose_Bot `and try again!")


@ultroid_cmd(pattern="fedinfo ?(.*)")
async def _(event):
ok = await event.edit("`Extracting information...`")
Expand All @@ -387,4 +390,5 @@ async def _(event):
except YouBlockedUserError:
await ok.edit("**Error**\n `Unblock` @MissRose_Bot `and try again!")


HELP.update({f"{__name__.split('.')[1]}": f"{__doc__.format(i=Var.HNDLR)}"})

0 comments on commit 339d0d8

Please sign in to comment.