From ed3bc7925350c82596a52177b9c2dae0391922be Mon Sep 17 00:00:00 2001 From: Taken Date: Mon, 28 Aug 2023 19:39:09 +0200 Subject: [PATCH 1/3] Changing env Signed-off-by: Taken --- deploy-commands.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy-commands.js b/deploy-commands.js index 150283c..f04055f 100644 --- a/deploy-commands.js +++ b/deploy-commands.js @@ -1,6 +1,6 @@ const { REST, Routes } = require('discord.js'); const env = require('dotenv').config(); -const token = process.env.TOKEN; +const token = process.env.PRODTOKEN; const clientId = process.env.CLIENTID; const guildId = process.env.GUILDID; const fs = require('node:fs'); @@ -84,4 +84,4 @@ else if (arg === '--dev') { } else if (arg && arg !== '--prod' && arg !== '--dev') { console.log('Invalid argument!'); -} \ No newline at end of file +} From 4f1759d8bfdef84dfd2b12d00c052824020f59ec Mon Sep 17 00:00:00 2001 From: Taken Date: Tue, 29 Aug 2023 12:18:35 +0200 Subject: [PATCH 2/3] Updating waiting list embed Signed-off-by: Taken --- commands/config.js | 7 +++---- events/buttons/waitingListUpdate.js | 9 +++++++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/commands/config.js b/commands/config.js index d52a0a5..d486b54 100644 --- a/commands/config.js +++ b/commands/config.js @@ -192,9 +192,8 @@ module.exports = { await channel.send({ embeds: [{ title: "Waiting List", - description: "The people below are on the waiting list to join the guild\n" + - "They are placed in order of then being accepted into the guild\n" + - "Press the button below to refresh the list", + description: "The people below were accepted into the guild\n" + + "Try to invite them in order.", color: embedColor, footer: { text: interaction.guild.name + " | Developed by @Taken#0002", @@ -210,7 +209,7 @@ module.exports = { .setCustomId("waitinglistupdate") .setLabel("Update") .setStyle(ButtonStyle.Primary) - .setEmoji({ name: "✅" })) + .setEmoji({ name: "🔄" })) ] }); await interaction.reply({ content: "Message sent", ephemeral: true }); diff --git a/events/buttons/waitingListUpdate.js b/events/buttons/waitingListUpdate.js index fd024d0..1a74dff 100644 --- a/events/buttons/waitingListUpdate.js +++ b/events/buttons/waitingListUpdate.js @@ -14,6 +14,7 @@ module.exports = { await interaction.deferReply({ ephemeral: true }); + const user = interaction.user; const message = interaction.message; const embed = message.embeds[0]; const accepted = await waitinglist.find() @@ -50,12 +51,16 @@ module.exports = { title: embed.title, description: embed.description, color: embed.color, - footer: embed.footer, + footer: { + text: "Last updated by " + user.username, + icon_url: user.avatarURL(), + }, thumbnail: embed.thumbnail, fields: fields, + timestamp: new Date(), }], }); await interaction.editReply({ content: 'Updated the waiting list', ephemeral: true }); } -} +} \ No newline at end of file From 167e6f47264b90d9f25d6dcfe2324800c2db9bbf Mon Sep 17 00:00:00 2001 From: Taken Date: Tue, 29 Aug 2023 12:21:40 +0200 Subject: [PATCH 3/3] Updating env example file Signed-off-by: Taken --- .env.example | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.env.example b/.env.example index 401271a..0696fcf 100644 --- a/.env.example +++ b/.env.example @@ -1,6 +1,8 @@ +PRODTOKEN= TOKEN= MONGOURI= DEV= CLIENTID= +DEVID= GUILDID= HYPIXELAPIKEY= \ No newline at end of file