Skip to content

Commit

Permalink
Fix "/soundcontrol mute" command
Browse files Browse the repository at this point in the history
Updated handle_command in volume.py to handle both "/volume mute" and "/soundcontrol mute" commands
  • Loading branch information
Lenochxd committed Dec 16, 2024
1 parent 9c27d47 commit 83ac777
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/buttons/audio/volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,5 +142,5 @@ def handle_command(message):
target_volume = int(message.replace("/volume set ", "")) / 100.0
set_volume(target_volume)

elif message.startswith("/volume mute"):
elif message.startswith(("/volume mute", "/soundcontrol mute")):
mute_volume()

0 comments on commit 83ac777

Please sign in to comment.