diff options
| author | 2020-08-30 09:52:17 -0500 | |
|---|---|---|
| committer | 2020-08-30 09:52:17 -0500 | |
| commit | 94b89a867942d98138f43ec8d2e6bf8f6607c240 (patch) | |
| tree | 36a298e4f1aeb138e989c096f0730232086f41a7 | |
| parent | Everyone Ping: PR Review (diff) | |
Everyone Ping: NEGATIVE_REPLIES in title
The NEGATIVE_REPLIES header is now the title of the embed.
| -rw-r--r-- | bot/rules/everyone_ping.py | 10 | 
1 files changed, 2 insertions, 8 deletions
diff --git a/bot/rules/everyone_ping.py b/bot/rules/everyone_ping.py index f3790ba2c..08415b1e0 100644 --- a/bot/rules/everyone_ping.py +++ b/bot/rules/everyone_ping.py @@ -1,5 +1,4 @@  import random -import textwrap  from typing import Dict, Iterable, List, Optional, Tuple  from discord import Embed, Member, Message @@ -22,15 +21,10 @@ async def apply(      if everyone_messages_count > config["max"]:          # Send the user an embed giving them more info: -        embed_text = textwrap.dedent( -            f""" -            **{random.choice(NEGATIVE_REPLIES)}** -            Please don't try to ping {last_message.guild.member_count:,} people. -            """ -        ) +        embed_text = f"Please don't try to ping {last_message.guild.member_count:,} people."          # Make embed: -        embed = Embed(description=embed_text, colour=Colours.soft_red) +        embed = Embed(title=random.choice(NEGATIVE_REPLIES), description=embed_text, colour=Colours.soft_red)          # Send embed:          await last_message.channel.send(embed=embed)  |