einheitliche benennung

This commit is contained in:
Nico Jensen 2022-01-31 17:54:45 +01:00
parent 57582933ca
commit 45e016e9c3

View File

@ -4,10 +4,10 @@ const {REST} = require("@discordjs/rest")
const {Routes} = require("discord-api-types/v9")
const commands = []
const CommandFiles = fs.readdirSync("./src/commands").filter(file => file.endsWith(".js"))
const commandFiles = fs.readdirSync("./src/commands").filter(file => file.endsWith(".js"))
CommandFiles.forEach(CommandFile => {
const command = require(`./commands/${CommandFile}`)
commandFiles.forEach(commandFile => {
const command = require(`./commands/${commandFile}`)
commands.push(command.data.toJSON())
})