Fix help command if no sub-menu is specified

This commit is contained in:
hgw 2023-10-02 02:11:27 +00:00
parent 1662716c15
commit 3e238b7983
1 changed files with 3 additions and 1 deletions

4
bot.js
View File

@ -83,7 +83,9 @@ function openPostWorker(chan, command, d1, d2, d3, d4, d5, d6) {
}
async function help(chan, sub) {
var sub = sub.toLowerCase()
if (sub != undefined ) {
var sub = sub.toLowerCase()
}
openPostWorker(chan, 'help', sub)
}