diff --git a/bot.js b/bot.js index 135d00a..52a6272 100644 --- a/bot.js +++ b/bot.js @@ -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) }