Skip to content

Commit

Permalink
fix: greeter type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
KnownBlackHat committed Jul 10, 2024
1 parent 50dae01 commit d223c63
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions mr_robot/exts/greeting.py → mr_robot/exts/greeter.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ async def on_member_remove(self, member):
font_style=FontDir(greeter_db.bye_fontstyle),
theme=greeter_db.bye_theme or "",
outline=greeter_db.bye_outline or 0,
welcome=False,
)
img_file = await self.loop.run_in_executor(None, gen_img)
await member_channel.send(file=img_file) # type: ignore[reportAttributeAccessIssue]
Expand Down Expand Up @@ -232,7 +233,7 @@ async def slash_set(
outline: The outline of the text
message: The message to send
"""
font_style = getattr(font_style, "value", font_style)
# font_style = getattr(font_style, "value", font_style)
try:
bg_img = await self.__request_bg(img_url)
usr_img = await self.__request_usr(
Expand All @@ -247,6 +248,7 @@ async def slash_set(
font_style=font_style,
theme=theme,
outline=outline,
welcome=(False if feature == "Goodbye Channel" else True),
)
img_file = await self.loop.run_in_executor(None, gen_img)
await interaction.send(
Expand All @@ -263,7 +265,7 @@ async def slash_set(
guild_id=interaction.guild.id,
wlcm_channel=channel.id,
wlcm_image=img_url,
wlcm_fontstyle=font_style,
wlcm_fontstyle=font_style.value,
wlcm_outline=outline,
wlcm_msg=message,
wlcm_theme=theme,
Expand All @@ -275,7 +277,7 @@ async def slash_set(
guild_id=interaction.guild.id,
bye_channel=channel.id,
bye_image=img_url,
bye_fontstyle=font_style,
bye_fontstyle=font_style.value,
bye_outline=outline,
bye_msg=message,
bye_theme=theme,
Expand Down

0 comments on commit d223c63

Please sign in to comment.