Skip to content

Commit 4725059

Browse files
committed
Fix case-sensitivity in /passwd
1 parent 1fd1eb4 commit 4725059

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/sr/discord_bot/commands/passwd.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ async def passwd(
2727
message = '\n'.join([f"**{team}:** {password}" for team, password in passwords])
2828
await interaction.response.send_message(message, ephemeral=True)
2929
else:
30+
tla = tla.upper()
3031
if new_password is not None:
3132
if isinstance(interaction.user, discord.Member) and not interaction.user.guild_permissions.administrator:
3233
await interaction.response.send_message(
@@ -35,7 +36,7 @@ async def passwd(
3536
)
3637
return
3738
interaction.client.set_password(tla, new_password)
38-
await interaction.response.send_message(f"The password for {tla.upper()} has been changed.", ephemeral=True)
39+
await interaction.response.send_message(f"The password for {tla} has been changed.", ephemeral=True)
3940
else:
4041
password = interaction.client.passwords[tla]
41-
await interaction.response.send_message(f"The password for {tla.upper()} is `{password}`", ephemeral=True)
42+
await interaction.response.send_message(f"The password for {tla} is `{password}`", ephemeral=True)

0 commit comments

Comments
 (0)