Skip to content

Commit

Permalink
Merge pull request #7 from NebulaServices/2.3.1
Browse files Browse the repository at this point in the history
2.3.1
  • Loading branch information
joebobbio committed Aug 27, 2022
2 parents aecf8ba + df62f08 commit d13c784
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions Handler/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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 })
Expand Down
2 changes: 1 addition & 1 deletion commands/panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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] });
}
Expand Down
2 changes: 1 addition & 1 deletion deploy-commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down
2 changes: 1 addition & 1 deletion events/interactionCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion events/ready.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
});
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit d13c784

Please sign in to comment.