From 184458608d518364c0048b730f2c4dd0330afde8 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sun, 26 Mar 2023 00:47:39 -0400 Subject: [PATCH] Fix naming bug in audioController --- Client/discord-bot/controllers/audioController.js | 2 +- Client/discord-bot/utilities/executeConsoleCommand.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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" ];