aboutsummaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
authorjacob janzen <53062115+JacobJanzen@users.noreply.github.com>2024-12-11 20:09:55 -0600
committerGitHub <noreply@github.com>2024-12-11 20:09:55 -0600
commit78541dcecfc154493a6f1cedf33c0c8178331d96 (patch)
tree499b64f82ba76b578a97f25acfcd0e693a5e29d9 /app.js
parent9c4e538aa0b41906b97b7ecc3317c23ba26b3246 (diff)
Fix imports
Diffstat (limited to 'app.js')
-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" });