|
|
@@ -51,7 +51,7 @@ class Commands {
|
|
|
};
|
|
|
|
|
|
const activeModeHandler = (str) => {
|
|
|
- let res = stringSimilarity.findBestMatch(str, Object.keys(deps.data.preset.modes));
|
|
|
+ let res = stringSimilarity.findBestMatch((str || ""), Object.keys(deps.data.preset.modes));
|
|
|
|
|
|
// eslint-disable-next-line no-magic-numbers
|
|
|
if(res.bestMatch.rating < 0.2) { deps.log.send("Mode was not found"); return; }
|