diff options
author | jacob janzen <53062115+JacobJanzen@users.noreply.github.com> | 2024-12-11 20:09:55 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-11 20:09:55 -0600 |
commit | 78541dcecfc154493a6f1cedf33c0c8178331d96 (patch) | |
tree | 499b64f82ba76b578a97f25acfcd0e693a5e29d9 /app.js | |
parent | 9c4e538aa0b41906b97b7ecc3317c23ba26b3246 (diff) |
Fix imports
Diffstat (limited to 'app.js')
-rw-r--r-- | app.js | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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" }); |