From 78541dcecfc154493a6f1cedf33c0c8178331d96 Mon Sep 17 00:00:00 2001 From: jacob janzen <53062115+JacobJanzen@users.noreply.github.com> Date: Wed, 11 Dec 2024 20:09:55 -0600 Subject: Fix imports --- app.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'app.js') 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" }); -- cgit v1.2.3