modrinth command

This commit is contained in:
Ryan Cao 2022-08-29 10:44:40 +08:00
parent bc0725595d
commit 8852026e2c
No known key found for this signature in database
GPG key ID: 528A2C1B6656B97F
5 changed files with 110 additions and 1 deletions

View file

@ -18,6 +18,7 @@ import random from 'just-random';
import { green, bold, yellow } from 'kleur/colors';
import 'dotenv/config';
import { getTags } from './tagsTags';
import { modrinthCommand } from './commands/modrinth';
const client = new Client({
intents: [
@ -137,6 +138,8 @@ client.on('interactionCreate', async (interaction) => {
await membersCommand(interaction);
} else if (commandName === 'stars') {
await starsCommand(interaction);
} else if (commandName === 'modrinth') {
await modrinthCommand(interaction);
} else if (commandName === 'rolypoly') {
await interaction.reply(
'https://media.discordapp.net/attachments/985048903126769764/985051373886382100/rollin-time.gif?width=324&height=216'