blacklist DSPL 💔 (#1293)
This commit is contained in:
+4
-2
@@ -42,7 +42,7 @@ from .utils import (
|
||||
replay_session_dir,
|
||||
SQ_BATTLES_DB_PATH,
|
||||
SQUADRONS_DB_PATH,
|
||||
BLACKLISTED_SERVER_IDS,
|
||||
blacklisted_guilds,
|
||||
DEFAULT_FOOTER_CAT,
|
||||
compress_json,
|
||||
decompress_json,
|
||||
@@ -768,6 +768,8 @@ async def prune_invalid_channels(bot, mapping: dict[str, tuple[dict, list[tuple]
|
||||
pruning so the dispatch step can decide between a real scoreboard and an
|
||||
over-cap/wildcard-blocked warning.
|
||||
"""
|
||||
blacklist = blacklisted_guilds()
|
||||
|
||||
for sid in list(mapping):
|
||||
game, targets = mapping[sid]
|
||||
valid_targets: list[tuple] = []
|
||||
@@ -787,7 +789,7 @@ async def prune_invalid_channels(bot, mapping: dict[str, tuple[dict, list[tuple]
|
||||
continue
|
||||
|
||||
# Drop any target from a blacklisted server
|
||||
if guild.id in BLACKLISTED_SERVER_IDS:
|
||||
if guild.id in blacklist:
|
||||
continue
|
||||
|
||||
# Check channel exists in Discord
|
||||
|
||||
Reference in New Issue
Block a user