blacklist DSPL 💔 (#1293)
This commit is contained in:
@@ -32,7 +32,7 @@ from .utils import (
|
||||
STORAGE_DIR,
|
||||
SQUADRONS_DB_PATH,
|
||||
SQ_BATTLES_DB_PATH,
|
||||
BLACKLISTED_SERVER_IDS,
|
||||
blacklisted_guilds,
|
||||
DEFAULT_FOOTER_CAT,
|
||||
compress_json,
|
||||
discord_len,
|
||||
@@ -1034,11 +1034,12 @@ async def execute_points_alarm_task(region: str):
|
||||
# Step 1: Collect squadron -> [(guild_id, channel_str, flag)] mappings
|
||||
# flag: "ok" (dispatch normal) | "over_cap" (send orange upgrade warning)
|
||||
squadron_channels: dict[str, list[tuple[int, str, str, str]]] = {}
|
||||
blacklist = blacklisted_guilds()
|
||||
|
||||
for guild in bot.guilds:
|
||||
guild_id = guild.id
|
||||
|
||||
if guild_id in BLACKLISTED_SERVER_IDS:
|
||||
if guild_id in blacklist:
|
||||
continue
|
||||
|
||||
prefs_path = PREFS_DIR / f"{guild_id}-preferences.json"
|
||||
|
||||
Reference in New Issue
Block a user