Compare commits

...

2 Commits

Author SHA1 Message Date
49e090b3c9 Fixed typo in command name. 2026-06-03 11:00:42 +02:00
efc9145f80 Fixed AI validation. 2026-06-02 17:33:31 +02:00
2 changed files with 3 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ class SlashCommands(commands.Cog):
print("a") print("a")
@app_commands.command( @app_commands.command(
name="domt5-pingme", name="dom5-pingme",
description="Signs you up to be pinged for a game. Run the command again to not get pinged anymore.", description="Signs you up to be pinged for a game. Run the command again to not get pinged anymore.",
) )
async def pingme(self, interaction: discord.Interaction, name: str): async def pingme(self, interaction: discord.Interaction, name: str):

View File

@@ -58,7 +58,7 @@ def server_command_builder(
tuple[int, int] tuple[int, int]
] = [], # list of nations that will be ai tuple format: NationID, AI Level (1-6), 0 being closed ] = [], # list of nations that will be ai tuple format: NationID, AI Level (1-6), 0 being closed
client_start: bool = True, client_start: bool = True,
teams: list[tuple[int, int, int]] = [], teams: list[tuple[int, int, int]] = [], # list of teams with format nation id,
clustered_start: bool = False, clustered_start: bool = False,
team_game: bool = False, team_game: bool = False,
mapfile: str = "", mapfile: str = "",
@@ -100,7 +100,7 @@ def server_command_builder(
if not (0 < era < 4): if not (0 < era < 4):
return "ERROR_ERA" return "ERROR_ERA"
ai_indexes = [t[1] for t in ai_slots] ai_indexes = [t[0] for t in ai_slots]
if not (len(ai_indexes) == len(set(ai_indexes))): if not (len(ai_indexes) == len(set(ai_indexes))):
return "ERROR_AIS" return "ERROR_AIS"