mirror of
https://github.com/LBRYFoundation/lbry-wunderbot.git
synced 2025-08-29 16:31:26 +00:00
Fixed problem with aliases causing bot to crash
This commit is contained in:
parent
01ff2d995a
commit
5ccfaaf4c7
1 changed files with 3 additions and 3 deletions
|
@ -101,11 +101,11 @@ function checkMessageForCommand(msg, isEdit) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let alias = aliases[cmdTxt];
|
let alias = aliases[cmdTxt];
|
||||||
|
let cmd;
|
||||||
if (alias) {
|
if (alias) {
|
||||||
let cmd = alias;
|
cmd = alias;
|
||||||
} else {
|
} else {
|
||||||
let cmd = commands[cmdTxt];
|
cmd = commands[cmdTxt];
|
||||||
|
|
||||||
}
|
}
|
||||||
if (cmdTxt === 'help') {
|
if (cmdTxt === 'help') {
|
||||||
//help is special since it iterates over the other commands
|
//help is special since it iterates over the other commands
|
||||||
|
|
Loading…
Add table
Reference in a new issue