diff --git a/Client/discord-bot/controllers/audioController.js b/Client/discord-bot/controllers/audioController.js index 7065a20..124c77d 100644 --- a/Client/discord-bot/controllers/audioController.js +++ b/Client/discord-bot/controllers/audioController.js @@ -30,7 +30,7 @@ export function confirmAudioDevice({deviceName = undefined, deviceId = undefined */ export function getAudioDevices(){ // Exec output contains both stderr and stdout outputs - const deviceList = executeConsoleCommand("arecord -L"); + const deviceList = executeAsyncConsoleCommand("arecord -L"); log.DEBUG("Device list: ", deviceList); } diff --git a/Client/discord-bot/utilities/executeConsoleCommand.js b/Client/discord-bot/utilities/executeConsoleCommand.js index f2affca..d28a160 100644 --- a/Client/discord-bot/utilities/executeConsoleCommand.js +++ b/Client/discord-bot/utilities/executeConsoleCommand.js @@ -8,7 +8,7 @@ const log = new ModuleDebugBuilder("bot", "executeConsoleCommand"); const execCommand = promisify(exec); -export async function executeAsyncConsoleCommand(consoleCommand) { +export default async function executeAsyncConsoleCommand(consoleCommand) { // Check to see if the command is a real command // TODO needs to be improved const acceptableCommands = [ "arecord -L" ];