Update command module to follow module syntax
This commit is contained in:
@@ -7,7 +7,7 @@ const log = new ModuleDebugBuilder("bot", "executeConsoleCommand");
|
|||||||
const exec = promisify(require('child_process').exec);
|
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
|
// Check to see if the command is a real command
|
||||||
// TODO needs to be improved
|
// TODO needs to be improved
|
||||||
const acceptableCommands = [ "arecord -L" ];
|
const acceptableCommands = [ "arecord -L" ];
|
||||||
|
|||||||
Reference in New Issue
Block a user