fix crash

This commit is contained in:
jjanzen 2025-01-16 23:56:33 -06:00
parent 78c115a807
commit 0e8086b612

3
app.js
View file

@ -52,7 +52,8 @@ function handle_application_command(state, data, channel_id) {
return fomx(state); return fomx(state);
case "factcheck": case "factcheck":
if (options.length >= 1) return factcheck(state, options[0].value); if (options && options.length >= 1)
return factcheck(state, options[0].value);
else return factcheck(state, True); else return factcheck(state, True);
default: default: