Fix help command if no sub-menu is specified
This commit is contained in:
parent
1662716c15
commit
3e238b7983
2
bot.js
2
bot.js
@ -83,7 +83,9 @@ function openPostWorker(chan, command, d1, d2, d3, d4, d5, d6) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function help(chan, sub) {
|
async function help(chan, sub) {
|
||||||
|
if (sub != undefined ) {
|
||||||
var sub = sub.toLowerCase()
|
var sub = sub.toLowerCase()
|
||||||
|
}
|
||||||
openPostWorker(chan, 'help', sub)
|
openPostWorker(chan, 'help', sub)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user