aboutsummaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'app.js')
-rw-r--r--app.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/app.js b/app.js
index 48b58ea..627dc3f 100644
--- a/app.js
+++ b/app.js
@@ -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" });