mirror of
https://github.com/LBRYFoundation/lbry-wunderbot.git
synced 2025-09-02 18:25:18 +00:00
update clause
This commit is contained in:
parent
298479ea9c
commit
0de418b560
1 changed files with 2 additions and 6 deletions
|
@ -77,12 +77,8 @@ function checkMessageForCommand(msg, isEdit) {
|
|||
return;
|
||||
}
|
||||
}
|
||||
let alias = aliases[cmdTxt];
|
||||
if (alias) {
|
||||
var cmd = commands[alias];
|
||||
} else {
|
||||
var cmd = commands[cmdTxt];
|
||||
}
|
||||
|
||||
let cmd = aliases.hasOwnProperty(cmdTxt) ? commands[aliases[cmdTxt]] : commands[cmdTxt];
|
||||
if (cmdTxt === 'help') {
|
||||
//help is special since it iterates over the other commands
|
||||
if (suffix) {
|
||||
|
|
Loading…
Add table
Reference in a new issue