From 88d693e804c37d1884c908dc6fa377c032ceea80 Mon Sep 17 00:00:00 2001 From: Jacob Janzen Date: Sat, 7 Dec 2024 23:37:49 -0600 Subject: add pet command --- app.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'app.js') 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}`); -- cgit v1.2.3