aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/app.js b/app.js
index 3bc5811..aee587c 100644
--- a/app.js
+++ b/app.js
@@ -6,7 +6,12 @@ import {
verifyKeyMiddleware,
} from "discord-interactions";
import { Client, GatewayIntentBits, ActivityType } from "discord.js";
-import { pet, schedule_message, unschedule_message } from "./command_impls.js";
+import {
+ help,
+ pet,
+ schedule_message,
+ unschedule_message,
+} from "./command_impls.js";
import { MessageSchedule } from "./message-scheduler.js";
class State {
@@ -37,7 +42,6 @@ function handle_application_command(state, data, channel_id) {
case "help":
return help(state);
-
default:
console.error(`unknown command: ${name}`);
return res.status(400).json({ error: "unknown command" });