aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app.js7
-rw-r--r--commands.js7
2 files changed, 14 insertions, 0 deletions
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
@@ -4,6 +4,13 @@ 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',
type: 1,