diff --git a/Handler/index.js b/Handler/index.js index e1da3f7..10cd6cf 100644 --- a/Handler/index.js +++ b/Handler/index.js @@ -86,7 +86,7 @@ const modalHandler = async (interaction, client) => { const extractModalData = async (interaction, client) => { - const webhookurl = client.config.reportWebhook + const webhookurl = client.config.REPORTWEBHOOK const webhookClient = new WebhookClient({ url: webhookurl }) const domain = interaction.fields.getTextInputValue('domainInput') @@ -115,8 +115,8 @@ const extractModalData = async (interaction, client) => { try { webhookClient.send({ - username: client.config.reportUsername, - avatarURL: client.config.reportAvatar, + username: client.config.REPORTUSERNAME, + avatarURL: client.config.REPORTAVATAR, embeds: [reportEmbed], }); await interaction.reply({ content: 'Your report has been sent!', ephemeral: true }) diff --git a/commands/panel.js b/commands/panel.js index 99ad973..40de15f 100644 --- a/commands/panel.js +++ b/commands/panel.js @@ -30,7 +30,7 @@ module.exports = { .setTitle("Proxy Dispenser") .setDescription(`Choose the proxy you want below or report a blocked one.`) .setColor("#4000ff") - .setFooter({ text: `${client.config.embedfooterText}`, iconURL: `${client.user.displayAvatarURL()}` }); + .setFooter({ text: `${client.config.EMBEDFOOTERTEXT}`, iconURL: `${client.user.displayAvatarURL()}` }); await interaction.reply({ embeds: [proxyEmbed], components: [row] }); } diff --git a/deploy-commands.js b/deploy-commands.js index 11e7b78..1c5ffbd 100644 --- a/deploy-commands.js +++ b/deploy-commands.js @@ -4,7 +4,7 @@ const path = require('node:path'); const { REST } = require('@discordjs/rest'); const { Routes } = require('discord-api-types/v9'); const clientID = process.env.CLIENTID; -const guildID = process.env.guildID; +const guildID = process.env.GUILDID; const token = process.env.TOKEN; const { colors } = require('./colors'); const commands = []; diff --git a/events/interactionCreate.js b/events/interactionCreate.js index ddb8f7c..40d4409 100644 --- a/events/interactionCreate.js +++ b/events/interactionCreate.js @@ -10,7 +10,7 @@ module.exports = { if (!command) return; if (command.ownerOnly) { - if (!client.config.ownerID.includes(interaction.user.id)) { + if (!client.config.OWNERID.includes(interaction.user.id)) { return interaction.reply({ content: "Access denied.", ephemeral: true, diff --git a/events/ready.js b/events/ready.js index 1696347..85a4575 100644 --- a/events/ready.js +++ b/events/ready.js @@ -6,7 +6,7 @@ module.exports = { async execute(client) { - client.user.setActivity(client.config.status, { + client.user.setActivity(client.config.STATUS, { type: "WATCHING", name: "work" }); diff --git a/index.js b/index.js index 3ee0c17..a15f122 100644 --- a/index.js +++ b/index.js @@ -21,4 +21,4 @@ loadEvents(client, path.join(__dirname, 'events')); loadCommands(client, path.join(__dirname, 'commands')) // logging in to bot -client.login(client.config.token); +client.login(client.config.TOKEN); diff --git a/package-lock.json b/package-lock.json index b615dbd..f9536b1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "neb-dispenser", - "version": "2.3.0", + "version": "2.3.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "neb-dispenser", - "version": "2.3.0", + "version": "2.3.1", "license": "ISC", "dependencies": { "@discordjs/rest": "^0.5.0", diff --git a/package.json b/package.json index f053f67..71c5434 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "neb-dispenser", - "version": "2.3.0", + "version": "2.3.1", "description": "Distribute domains to a Discord server", "main": "index.js", "scripts": {