Skip to content

Commit

Permalink
Style Reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
i-am-zaidali committed May 11, 2023
1 parent 69fc8b0 commit 4782249
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 10 deletions.
18 changes: 12 additions & 6 deletions hitormiss/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,12 @@ async def hom_shop(self, ctx: commands.Context):
)

embeds = await self.group_embeds_by_fields(
*fields,
page_in_footer=True,
title="Hit or Miss Shop",
description="All the items available in H.O.M",
color=(await ctx.embed_color()).value, thumbnail=getattr(ctx.guild.icon, "url", None)
*fields,
page_in_footer=True,
title="Hit or Miss Shop",
description="All the items available in H.O.M",
color=(await ctx.embed_color()).value,
thumbnail=getattr(ctx.guild.icon, "url", None),
)

view = PaginationView(ctx, embeds, 60, True)
Expand Down Expand Up @@ -340,7 +341,12 @@ async def hom_inv(self, ctx: commands.Context):
}
)

embeds = await self.group_embeds_by_fields(*fields, page_in_footer=True, color=(await ctx.embed_color()).value, thumbnail=ctx.author.display_avatar.url)
embeds = await self.group_embeds_by_fields(
*fields,
page_in_footer=True,
color=(await ctx.embed_color()).value,
thumbnail=ctx.author.display_avatar.url,
)
for ind, embed in enumerate(embeds, 1):
embed.color = await ctx.embed_color()
embed.set_thumbnail(url=ctx.author.display_avatar.url)
Expand Down
6 changes: 5 additions & 1 deletion notes/notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,11 @@ async def notes(self, ctx: commands.Context, member: Optional[discord.User] = No
fields.append({"name": f"Note #{i}", "value": note, "inline": False})

embeds = await self.group_embeds_by_fields(
*fields, page_in_footer=True,author={"name": str(member)}, per_embed=5, color=member.color.value
*fields,
page_in_footer=True,
author={"name": str(member)},
per_embed=5,
color=member.color.value,
)

await menu(ctx, embeds, DEFAULT_CONTROLS)
Expand Down
6 changes: 3 additions & 3 deletions timer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ class EmojiConverter(commands.EmojiConverter):
async def convert(self, ctx: commands.Context, argument: str):
try:
emoji.EMOJI_DATA[argument]

except KeyError:
return await super().convert(ctx, argument)

else:
return argument
return argument

0 comments on commit 4782249

Please sign in to comment.