diff options
author | Jacob Janzen <jacob.a.s.janzen@gmail.com> | 2024-12-30 21:15:14 -0600 |
---|---|---|
committer | Jacob Janzen <jacob.a.s.janzen@gmail.com> | 2024-12-30 21:15:14 -0600 |
commit | af4278b2ee3b0bf9d541e13dfabbee7e8d5ee89b (patch) | |
tree | a58c290173e1d7c9e34c991cf3191596c36f730f /app.js | |
parent | 128f3d63ea5ec3b225da8d0c7196ea4082389f9d (diff) |
add fomx
Diffstat (limited to 'app.js')
-rw-r--r-- | app.js | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -6,7 +6,14 @@ import { verifyKeyMiddleware, } from "discord-interactions"; import { Client, GatewayIntentBits, ActivityType } from "discord.js"; -import { blep, help, pet, schedule_message, catfact } from "./command_impls.js"; +import { + blep, + help, + pet, + schedule_message, + catfact, + fomx, +} from "./command_impls.js"; import { MessageSchedule } from "./message-scheduler.js"; class State { @@ -40,6 +47,9 @@ function handle_application_command(state, data, channel_id) { case "catfact": return catfact(state); + case "fomx": + return fomx(state); + default: console.error(`unknown command: ${name}`); return res.status(400).json({ error: "unknown command" }); |