mirror of
https://github.com/LBRYFoundation/lbry-wunderbot.git
synced 2025-09-03 02:35:17 +00:00
Merge pull request #176 from lbryio/bugfix-vars
Fixed problem with aliases causing bot to crash
This commit is contained in:
commit
61198288fb
1 changed files with 3 additions and 3 deletions
|
@ -101,11 +101,11 @@ function checkMessageForCommand(msg, isEdit) {
|
|||
}
|
||||
}
|
||||
let alias = aliases[cmdTxt];
|
||||
let cmd;
|
||||
if (alias) {
|
||||
let cmd = alias;
|
||||
cmd = alias;
|
||||
} else {
|
||||
let cmd = commands[cmdTxt];
|
||||
|
||||
cmd = commands[cmdTxt];
|
||||
}
|
||||
if (cmdTxt === 'help') {
|
||||
//help is special since it iterates over the other commands
|
||||
|
|
Loading…
Add table
Reference in a new issue