File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/sr/discord_bot/commands Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments