aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MrAwesomeRocks <[email protected]>2020-08-30 07:32:44 -0500
committerGravatar MrAwesomeRocks <[email protected]>2020-08-30 07:32:44 -0500
commit20f0dfd57f3ed711ef46169b9dcf0e8ee57bcfd1 (patch)
tree7ac70005337aacd1c64c3b5cec82cad17a5c5e81
parentEveryone Ping: Fixed linting error (diff)
Everyone ping: Changed message, cleaned file
Changed the message to say the raw member count, not just thousands. Also cleaned up some unused variables and imports in the file.
-rw-r--r--bot/rules/everyone_ping.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/bot/rules/everyone_ping.py b/bot/rules/everyone_ping.py
index 8c1b43628..037d7254e 100644
--- a/bot/rules/everyone_ping.py
+++ b/bot/rules/everyone_ping.py
@@ -1,4 +1,3 @@
-import logging
import textwrap
from typing import Dict, Iterable, List, Optional, Tuple
@@ -6,9 +5,6 @@ from discord import Embed, Member, Message
from bot.constants import Colours
-# For embed sender
-log = logging.getLogger(__name__)
-
async def apply(
last_message: Message,
@@ -25,11 +21,9 @@ async def apply(
if ev_msgs_ct > config["max"]:
# Send the user an embed giving them more info:
- member_count = f'{last_message.guild.member_count}'.split(",")[0]
- # Change the `K` to an `M` once the server reaches over 1 million people.
embed_text = textwrap.dedent(
f"""
- Please don't try to ping {member_count}K people.
+ Please don't try to ping {last_message.guild.member_count} people.
**It will not have good results.**
"""
)