Update command module to follow module syntax

This commit is contained in:
Logan Cusano
2023-03-26 00:36:19 -04:00
parent 2aff7579a8
commit d7878535b5

View File

@@ -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" ];