Added /drawtriangle command

master
Chloe Fontenot 🏳️‍⚧️ 2023-04-04 21:03:27 +07:00
parent 07f83853a5
commit 7ddf0e6a8e
2 changed files with 4 additions and 3 deletions

@ -35,6 +35,7 @@ module.exports = {
break;
}
console.log(codeBlock("", output));
await interaction.reply(codeBlock("", output));
console.log("User " + interaction.user.tag + " ran /drawtriangle");
},

@ -1,9 +1,9 @@
// Require the necessary discord.js classes
const { Client, Events, GatewayIntentBits, REST, Routes, Collection, FLAGS, MessageMentionOptions } = require('discord.js');
const { Client, Events, GatewayIntentBits, REST, Routes, Collection, FLAGS, MessageMentionOptions, codeBlock, SlashCommandBuilder } = require('discord.js');
const Discord = require('discord.js');
const { clientId, guildId, token } = require('./key.json');
const fs = require('node:fs');
const path = require('node:path');
let fs = require('node:fs');
let path = require('node:path');
// Create a new client instance
const client = new Discord.Client({