diff options
author | 2019-10-01 17:37:19 -0700 | |
---|---|---|
committer | 2019-10-01 18:25:35 -0700 | |
commit | bd7a9fef637ff73077fde2db163e3780e6ded9fe (patch) | |
tree | b293fc740a3da60bef690cfc29d8e4ca31227e94 | |
parent | Move DM notification functions to moderation utils module (diff) |
Use consistent expiration format in superstarify
-rw-r--r-- | bot/cogs/moderation/superstarify.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bot/cogs/moderation/superstarify.py b/bot/cogs/moderation/superstarify.py index 0c805a385..7e0307181 100644 --- a/bot/cogs/moderation/superstarify.py +++ b/bot/cogs/moderation/superstarify.py @@ -176,13 +176,14 @@ class Superstarify(Cog): expires_at=expiration ) forced_nick = self.get_nick(infraction['id'], member.id) + expiry_str = format_infraction(infraction["expires_at"]) embed = Embed() embed.title = "Congratulations!" embed.description = ( f"Your previous nickname, **{member.display_name}**, was so bad that we have decided to change it. " f"Your new nickname will be **{forced_nick}**.\n\n" - f"You will be unable to change your nickname until \n**{expiration}**.\n\n" + f"You will be unable to change your nickname until \n**{expiry_str}**.\n\n" "If you're confused by this, please read our " f"[official nickname policy]({NICKNAME_POLICY_URL})." ) @@ -194,7 +195,7 @@ class Superstarify(Cog): f"Superstarified by **{ctx.author.name}**\n" f"Old nickname: `{member.display_name}`\n" f"New nickname: `{forced_nick}`\n" - f"Superstardom ends: **{expiration}**" + f"Superstardom ends: **{expiry_str}**" ) await self.modlog.send_log_message( icon_url=Icons.user_update, @@ -207,7 +208,7 @@ class Superstarify(Cog): await utils.notify_infraction( user=member, infr_type="Superstarify", - expires_at=expiration, + expires_at=expiry_str, reason=f"Your nickname didn't comply with our [nickname policy]({NICKNAME_POLICY_URL})." ) |