summaryrefslogtreecommitdiff
path: root/commands.ts
diff options
context:
space:
mode:
authorMathias Magnusson <mathias@magnusson.space>2026-01-20 10:43:30 +0100
committerMathias Magnusson <mathias@magnusson.space>2026-01-20 10:43:30 +0100
commitdb0b737210c1dd057a46b08ebfb050bcb80b35cd (patch)
tree98337432279780d2c9eef7fa76ecea35680a370c /commands.ts
parent47f1cef7c50c06de38d9b24c2579e8f8183dae23 (diff)
downloadchalle-anka-db0b737210c1dd057a46b08ebfb050bcb80b35cd.tar.gz
parameterize solve message; clean up index.ts
Diffstat (limited to 'commands.ts')
-rw-r--r--commands.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/commands.ts b/commands.ts
index 2f5598f..7005165 100644
--- a/commands.ts
+++ b/commands.ts
@@ -15,6 +15,8 @@ import {
type GuildBasedChannel,
} from "discord.js";
+import { celebrationMessage } from "./index.ts";
+
export let slashCommands = [
{
slashCommand: new SlashCommandBuilder()
@@ -309,7 +311,7 @@ async function solveThread(interaction: ChatInputCommandInteraction) {
await channel.setAppliedTags(channel.appliedTags.filter(tag => tag !== unsolvedTag.id));
}
- await interaction.reply("<:club_mate:889629353934213210> 🎉");
+ await interaction.reply(celebrationMessage);
}
async function handleJoinCtfButton(interaction: ButtonInteraction, forumId: string) {