diff options
author | jjanzen <jjanzen@jjanzen.ca> | 2025-01-16 23:55:00 -0600 |
---|---|---|
committer | jjanzen <jjanzen@jjanzen.ca> | 2025-01-16 23:55:00 -0600 |
commit | 78c115a807303d54fb1ddd5a1901648b68eff0db (patch) | |
tree | a3f67d046d8ba7863161def06bb8d16f85fa3299 /app.js | |
parent | 7f600c39ca945ba0264deb7a68b905e6e0e12327 (diff) |
factcheck basic impl
Diffstat (limited to 'app.js')
-rw-r--r-- | app.js | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -13,6 +13,7 @@ import { schedule_message, catfact, fomx, + factcheck, } from "./command_impls.js"; import { MessageSchedule } from "./message-scheduler.js"; @@ -50,6 +51,10 @@ function handle_application_command(state, data, channel_id) { case "fomx": return fomx(state); + case "factcheck": + if (options.length >= 1) return factcheck(state, options[0].value); + else return factcheck(state, True); + default: console.error(`unknown command: ${name}`); return state.res.status(400).json({ error: "unknown command" }); |