From 8f44aa943e71529b2332f6ef00bf6806b98b49a7 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 16 Dec 2022 07:00:35 -0500 Subject: [PATCH] Add boilerplate to delete/deploy-commands.js --- delete-commands.js | 8 ++++++++ deploy-commands.js | 7 +++++++ 2 files changed, 15 insertions(+) diff --git a/delete-commands.js b/delete-commands.js index 8448205..b1898a4 100644 --- a/delete-commands.js +++ b/delete-commands.js @@ -1,3 +1,11 @@ +/* +* Konpeki Discord Bot - Slash Command Configuration File +* delete-commands.js - Clears all slash commands from Discord to remove any old commands +* +* Code modified based on example from the discord.js guides +* Run `node deploy-commands.js` after this to recreate your slash commands +*/ + const { REST, Routes } = require('discord.js'); const { clientId, token } = require('./config.json'); diff --git a/deploy-commands.js b/deploy-commands.js index b88a3d4..3992433 100644 --- a/deploy-commands.js +++ b/deploy-commands.js @@ -1,3 +1,10 @@ +/* +* Konpeki Discord Bot - Slash Command Configuration File +* deploy-commands.js - Gathers all current .js files in the commands folder and publishes a list to Discord +* +* Code modified based on example from the discord.js guides +*/ + const { REST, Routes } = require('discord.js'); const { clientId, token } = require('./config.json'); const fs = require('node:fs');