From cfba8e45c90c821adfecf6a17a1aec9fed584b18 Mon Sep 17 00:00:00 2001 From: joebobbio Date: Sat, 27 Aug 2022 01:07:20 -0400 Subject: [PATCH 1/2] env var hotfix --- Handler/index.js | 6 +++--- commands/panel.js | 2 +- deploy-commands.js | 2 +- events/interactionCreate.js | 2 +- events/ready.js | 2 +- index.js | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) 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); From df62f08c0d65f354b5394d7401cc09a44b785a73 Mon Sep 17 00:00:00 2001 From: joebobbio Date: Sat, 27 Aug 2022 01:08:30 -0400 Subject: [PATCH 2/2] 2.3.1 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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": {