Included 4th request by cclauss and fixed bugs

now its easier to use commands without arguments
This commit is contained in:
TallGorilla
2021-10-07 20:47:16 +02:00
parent 38b70f4d22
commit f2305ab685
4 changed files with 22 additions and 29 deletions

View File

@@ -91,7 +91,7 @@ def command_bye():
sys.exit()
def command_playMusic():
def command_play_music():
try:
music_folder = config['DEFAULT']['musicPath']
music = ("music1", "music2", "music3", "music4")
@@ -103,13 +103,13 @@ def command_playMusic():
speak(e)
def command_pauseMusic():
def command_pause_music():
mixer.music.pause()
def command_stopMusic():
def command_stop_music():
mixer.music.stop()
def command_unpauseMusic():
def command_unpause_music():
mixer.music.unpause()