mirror of
https://github.com/LBRYFoundation/lbry-wunderbot.git
synced 2025-09-03 20:35:12 +00:00
commit
5f9870e7e6
1 changed files with 3 additions and 1 deletions
|
@ -13,8 +13,9 @@ const supportbot = require('./modules/supportbot.js');
|
|||
|
||||
let aliases;
|
||||
try {
|
||||
aliases = require('./alias.json');
|
||||
aliases = require("./alias.json");
|
||||
} catch (e) {
|
||||
console.log("No aliases defined")
|
||||
//No aliases defined
|
||||
aliases = {
|
||||
test: {
|
||||
|
@ -100,6 +101,7 @@ function checkMessageForCommand(msg, isEdit) {
|
|||
return;
|
||||
}
|
||||
}
|
||||
let cmd = aliases.hasOwnProperty(cmdTxt) ? commands[aliases[cmdTxt]] : commands[cmdTxt];
|
||||
let alias = aliases[cmdTxt];
|
||||
let cmd;
|
||||
if (alias) {
|
||||
|
|
Loading…
Add table
Reference in a new issue