From 78c115a807303d54fb1ddd5a1901648b68eff0db Mon Sep 17 00:00:00 2001 From: jjanzen Date: Thu, 16 Jan 2025 23:55:00 -0600 Subject: factcheck basic impl --- app.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app.js') diff --git a/app.js b/app.js index 0e144d3..c812e83 100644 --- a/app.js +++ b/app.js @@ -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" }); -- cgit v1.2.3