aboutsummaryrefslogtreecommitdiff
path: root/174bg/discord-bot/main.js
diff options
context:
space:
mode:
authorAlex Pooley (@zuedev) <zuedev@gmail.com>2026-07-15 11:44:17 +0100
committerAlex Pooley (@zuedev) <zuedev@gmail.com>2026-07-15 11:44:17 +0100
commite10626e9ea388880d28eaf7be1a34d183f82e42f (patch)
treeab359e9c08b145f70cefe8b2eabd781947b481f1 /174bg/discord-bot/main.js
parent71c5745639efb289b22de3c5e03ca69820acd8e1 (diff)
downloadunnamed-group-e10626e9ea388880d28eaf7be1a34d183f82e42f.tar
unnamed-group-e10626e9ea388880d28eaf7be1a34d183f82e42f.tar.gz
unnamed-group-e10626e9ea388880d28eaf7be1a34d183f82e42f.tar.bz2
unnamed-group-e10626e9ea388880d28eaf7be1a34d183f82e42f.tar.xz
unnamed-group-e10626e9ea388880d28eaf7be1a34d183f82e42f.zip
simplify scope command reply structure
Diffstat (limited to '174bg/discord-bot/main.js')
-rw-r--r--174bg/discord-bot/main.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/174bg/discord-bot/main.js b/174bg/discord-bot/main.js
index 2f1ae87..cbbdebf 100644
--- a/174bg/discord-bot/main.js
+++ b/174bg/discord-bot/main.js
@@ -17,14 +17,12 @@ const commands = [
.setName("scope")
.setDescription("Returns the current scope of the bot."),
execute: async (interaction) => {
- const scope = {
+ await interaction.reply(codewrap("json", JSON.stringify({
guildIdFromEnv: process.env.DISCORD_GUILD_ID,
guildIdFromInteraction: interaction.guild.id,
doGuildIdsMatch:
process.env.DISCORD_GUILD_ID === interaction.guild.id,
- };
-
- await interaction.reply(codewrap("json", JSON.stringify(scope, null, 2)));
+ }, null, 2)));
}
},
{