diff --git a/plugins/sound_board/sound_board.py b/plugins/sound_board/sound_board.py index baf43384..66852020 100644 --- a/plugins/sound_board/sound_board.py +++ b/plugins/sound_board/sound_board.py @@ -53,7 +53,7 @@ def process_command(self, text): file_counter = 0 gather_list = [] internal_list = [] - for file_item in os.listdir(utils.get_permanent_media_dir() + "sound_board/"): + for file_item in os.listdir(utils.get_permanent_media_dir() + "/sound_board/"): if file_item.endswith(".wav"): gather_list.append(f"{file_item}") file_counter += 1 @@ -90,7 +90,7 @@ def process_command(self, text): gather_list = [] internal_list = [] - for file_item in os.listdir(utils.get_permanent_media_dir() + "sound_board/"): + for file_item in os.listdir(utils.get_permanent_media_dir() + "/sound_board/"): if file_item.endswith(".wav"): gather_list.append(f"{file_item}") file_counter += 1 @@ -176,7 +176,7 @@ def process_command(self, text): return if len(all_messages) == 2: if ".wav" in all_messages[1].strip(): - utils.remove_file(all_messages[1].strip(), utils.get_permanent_media_dir() + "sound_board/") + utils.remove_file(all_messages[1].strip(), utils.get_permanent_media_dir() + "/sound_board/") GM.gui.quick_gui(f"Deleted sound clip : {all_messages[1].strip()}", text_type='header', box_align='left') @@ -191,7 +191,7 @@ def process_command(self, text): box_align='left') return - if not os.path.isfile(utils.get_permanent_media_dir() + f"sound_board/{parameter}.wav"): + if not os.path.isfile(utils.get_permanent_media_dir() + f"/sound_board/{parameter}.wav"): GM.gui.quick_gui( "The sound clip does not exist.", text_type='header',