aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Steele <[email protected]>2020-12-07 11:04:38 -0500
committerGravatar Steele <[email protected]>2020-12-07 11:04:38 -0500
commit032b64f625d9d16f532ba0e895a412bc24ee9659 (patch)
tree98394a30c932ba1a50e1c2915c4f29f65d5dd3ff
parentUser gets a more detailed message from the bot (diff)
Use the original wording of the public embed, but change the title to "Superstarified!"
Per internal staff discussion, we'll keep the wording of the message.
-rw-r--r--bot/exts/moderation/infraction/superstarify.py19
1 files changed, 8 insertions, 11 deletions
diff --git a/bot/exts/moderation/infraction/superstarify.py b/bot/exts/moderation/infraction/superstarify.py
index 1d512a4c7..ffc470c54 100644
--- a/bot/exts/moderation/infraction/superstarify.py
+++ b/bot/exts/moderation/infraction/superstarify.py
@@ -157,32 +157,29 @@ class Superstarify(InfractionScheduler, Cog):
New nickname: `{forced_nick}`
""").strip()
- formatted_reason = f'**Additional details:** {reason}\n\n' if reason else ''
-
- embed_reason = (
+ user_message = (
f"Your previous nickname, **{old_nick}**, "
- f"didn't comply with our nickname policy. "
+ f"was so bad that we have decided to change it. "
f"Your new nickname will be **{forced_nick}**.\n\n"
- f"{formatted_reason}"
+ "{reason}"
f"You will be unable to change your nickname until **{expiry_str}**. "
"If you're confused by this, please read our "
f"[official nickname policy]({NICKNAME_POLICY_URL})."
- )
+ ).format
successful = await self.apply_infraction(
ctx, infraction, member, action(),
- user_reason=embed_reason,
+ user_reason=user_message(reason=f'**Additional details:** {reason}\n\n' if reason else ''),
additional_info=nickname_info
)
- # Send an embed with the infraction information to the invoking context if
- # superstar was successful.
+ # Send an embed with to the invoking context if superstar was successful.
if successful:
log.trace(f"Sending superstar #{id_} embed.")
embed = Embed(
- title="Congratulations!",
+ title="Superstarified!",
colour=constants.Colours.soft_orange,
- description=embed_reason
+ description=user_message(reason='')
)
await ctx.send(embed=embed)