add pet command

This commit is contained in:
Jacob Janzen 2024-12-07 23:37:49 -06:00
parent 183f29e383
commit 88d693e804
2 changed files with 14 additions and 0 deletions

7
app.js
View file

@ -95,6 +95,13 @@ app.post('/', verifyKeyMiddleware(process.env.PUBLIC_KEY), async function (req,
content: content, content: content,
}, },
}); });
} else if (name === 'pet') {
return res.send({
type: InteractionResponseType.CHANNEL_MESSAGE_WITH_SOURCE,
data: {
content: '[purring noises]',
},
});
} }
console.error(`unknown command: ${name}`); console.error(`unknown command: ${name}`);

View file

@ -3,6 +3,13 @@ import 'dotenv/config';
import { REST, Routes } from 'discord.js'; import { REST, Routes } from 'discord.js';
const commands = [ const commands = [
{
name: 'pet',
description: 'pet sily bot',
type: 1,
integration_types: [0],
contexts: [0],
},
{ {
name: 'schedule_message', name: 'schedule_message',
description: 'Register a message to run as a cron job', description: 'Register a message to run as a cron job',