modified: app.py

modified:   emotes.markdown
This commit is contained in:
SimolZimol
2025-10-27 18:38:16 +01:00
parent 3c4bcc7171
commit fc9d58a03c
2 changed files with 6 additions and 1 deletions

4
app.py
View File

@@ -132,6 +132,7 @@ TEAM_EMOTE_OVERRIDES: Dict[str, str] = {
"axis": "<:fascism:1432391685127536762>",
"allies": "<:democracy:1432391686612586528>",
"comintern": "<:communism:1432391682267025479>",
"cuf": "<:ChineseUnitedFront:1432422469985112156>",
"default": "<:neutrality:1432391681059197102>",
}
@@ -211,6 +212,9 @@ def get_team_emoji(ctx: commands.Context, team_name: str) -> str:
return pick(["democracy", "allies", "hoi4_allies"], "allies")
if any(k in name for k in ["comintern", "ussr", "soviet"]):
return pick(["communism", "comintern", "hoi4_comintern"], "comintern")
# Chinese United Front (optional special case)
if ("chinese united front" in name) or ("chinese" in name and "front" in name) or ("cuf" in name):
return pick(["ChineseUnitedFront", "chineseunitedfront", "cuf"], "cuf")
# Default/other
custom = find_custom_emoji(ctx, ["neutrality", "hoi4", "hearts_of_iron", "iron"])

View File

@@ -31,4 +31,5 @@
<:neutrality:1432391681059197102>
<:communism:1432391682267025479>
<:fascism:1432391685127536762>
<:democracy:1432391686612586528>
<:democracy:1432391686612586528>
<:ChineseUnitedFront:1432422469985112156>