From d7878535b58ab05fbdca917dea2a1edaced07152 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sun, 26 Mar 2023 00:36:19 -0400 Subject: [PATCH] Update command module to follow module syntax --- Client/discord-bot/utilities/executeConsoleCommand.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Client/discord-bot/utilities/executeConsoleCommand.js b/Client/discord-bot/utilities/executeConsoleCommand.js index 1904a82..215036e 100644 --- a/Client/discord-bot/utilities/executeConsoleCommand.js +++ b/Client/discord-bot/utilities/executeConsoleCommand.js @@ -7,7 +7,7 @@ const log = new ModuleDebugBuilder("bot", "executeConsoleCommand"); const exec = promisify(require('child_process').exec); -exports.executeAsyncConsoleCommand = (consoleCommand) => { +export default function executeAsyncConsoleCommand(consoleCommand) { // Check to see if the command is a real command // TODO needs to be improved const acceptableCommands = [ "arecord -L" ];