aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MrAwesomeRocks <[email protected]>2020-08-28 19:14:29 -0500
committerGravatar MrAwesomeRocks <[email protected]>2020-08-29 14:52:19 -0500
commit99aa7d55a72fdbf4265820e9d6f70d95132faa8f (patch)
treeadc65d8f09b732bb4e44ff3b054ca32351e5ecad
parentEveryone Ping: Added rule (diff)
Everyone Ping: Added rule to recognized rules
Added mapping to anti-spam cog, then also edited __init__ in the rules folder to expose the apply function.
-rw-r--r--bot/cogs/antispam.py3
-rw-r--r--bot/rules/__init__.py1
2 files changed, 3 insertions, 1 deletions
diff --git a/bot/cogs/antispam.py b/bot/cogs/antispam.py
index bc31cbd95..d003f962b 100644
--- a/bot/cogs/antispam.py
+++ b/bot/cogs/antispam.py
@@ -34,7 +34,8 @@ RULE_FUNCTION_MAPPING = {
'links': rules.apply_links,
'mentions': rules.apply_mentions,
'newlines': rules.apply_newlines,
- 'role_mentions': rules.apply_role_mentions
+ 'role_mentions': rules.apply_role_mentions,
+ 'everyone_ping': rules.apply_everyone_ping,
}
diff --git a/bot/rules/__init__.py b/bot/rules/__init__.py
index a01ceae73..8a69cadee 100644
--- a/bot/rules/__init__.py
+++ b/bot/rules/__init__.py
@@ -10,3 +10,4 @@ from .links import apply as apply_links
from .mentions import apply as apply_mentions
from .newlines import apply as apply_newlines
from .role_mentions import apply as apply_role_mentions
+from .everyone_ping import apply as apply_everyone_ping