diff --git a/app.js b/app.js index eea4265..2b2c5ea 100644 --- a/app.js +++ b/app.js @@ -95,6 +95,13 @@ app.post('/', verifyKeyMiddleware(process.env.PUBLIC_KEY), async function (req, content: content, }, }); + } else if (name === 'pet') { + return res.send({ + type: InteractionResponseType.CHANNEL_MESSAGE_WITH_SOURCE, + data: { + content: '[purring noises]', + }, + }); } console.error(`unknown command: ${name}`); diff --git a/commands.js b/commands.js index 2af766a..91d782a 100644 --- a/commands.js +++ b/commands.js @@ -3,6 +3,13 @@ import 'dotenv/config'; import { REST, Routes } from 'discord.js'; const commands = [ + { + name: 'pet', + description: 'pet sily bot', + type: 1, + integration_types: [0], + contexts: [0], + }, { name: 'schedule_message', description: 'Register a message to run as a cron job',