diff options
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" }); |