|
@@ -11,6 +11,7 @@
|
|
|
*/
|
|
*/
|
|
|
const rfdc = require("rfdc")({ "proto": true });
|
|
const rfdc = require("rfdc")({ "proto": true });
|
|
|
const stringSimilarity = require("string-similarity");
|
|
const stringSimilarity = require("string-similarity");
|
|
|
|
|
+
|
|
|
class unitControl {
|
|
class unitControl {
|
|
|
/**
|
|
/**
|
|
|
*Creates an instance of Control.
|
|
*Creates an instance of Control.
|
|
@@ -54,6 +55,13 @@ class unitControl {
|
|
|
deps.data._eventTrigger();
|
|
deps.data._eventTrigger();
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+ const modeListHandler = () => {
|
|
|
|
|
+ deps.mod.command.message("Current preset contains:");
|
|
|
|
|
+ Object.keys(deps.data.preset.modes).forEach(key => {
|
|
|
|
|
+ deps.mod.command.message(`${key}`);
|
|
|
|
|
+ });
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
const commands = {
|
|
const commands = {
|
|
|
"a": autoSettingHandler,
|
|
"a": autoSettingHandler,
|
|
|
"auto": autoSettingHandler,
|
|
"auto": autoSettingHandler,
|
|
@@ -63,6 +71,8 @@ class unitControl {
|
|
|
"help": helpHandler,
|
|
"help": helpHandler,
|
|
|
"m": activeModeHandler,
|
|
"m": activeModeHandler,
|
|
|
"mode": activeModeHandler,
|
|
"mode": activeModeHandler,
|
|
|
|
|
+ "l": modeListHandler,
|
|
|
|
|
+ "list": modeListHandler,
|
|
|
"d": debugSettingsHandler,
|
|
"d": debugSettingsHandler,
|
|
|
"debug": debugSettingsHandler
|
|
"debug": debugSettingsHandler
|
|
|
};
|
|
};
|