Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeyUsersREC authored Dec 7, 2024
1 parent 17c4f90 commit 1bac64e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,9 @@ async def interpret_embed(bot, ctx, channel, embed: dict, ics_id: int):
try:
embed.title = await sub_vars(bot, ctx, channel, embed.title)
except AttributeError:
pass

if str(var := await sub_vars(bot, ctx, channel, embed.author.name) != "None:
pass

if str(var := await sub_vars(bot, ctx, channel, embed.author.name) != "None":
try:
embed.set_author(name=await sub_vars(bot, ctx, channel, embed.author.name))
except AttributeError:
Expand Down Expand Up @@ -616,4 +616,4 @@ async def secure_logging(bot, guild_id, author_id, interpret_type: typing.Litera
description=f"[{(await bot.bloxlink.get_roblox_info(bloxlink_user['robloxID']))['name']}:{bloxlink_user['robloxID']}](https://roblox.com/users/{bloxlink_user['robloxID']}/profile) attempted to use the command: {'`:m {}`'.format(command_string) if interpret_type == 'Message' else ('`:h {}`'.format(command_string) if interpret_type == 'Hint' else '`{}`'.format(command_string))}",
color=RED_COLOR
).set_footer(text=f"Private Server: {server_status.join_key}")
)
)

0 comments on commit 1bac64e

Please sign in to comment.