diff --git a/api/src/discord/agile/commands/solveTask.ts b/api/src/discord/agile/commands/solveTask.ts index d7502bd7..8de94d5f 100644 --- a/api/src/discord/agile/commands/solveTask.ts +++ b/api/src/discord/agile/commands/solveTask.ts @@ -32,11 +32,15 @@ export async function handleTaskSolved( await moveChannel(guild, task, null, ChannelMovingEvent.SOLVED); - return sendMessageToTask( + const message = await sendMessageToTask( guild, id, `${task.title} is solved by ${await convertToUsernameFormat(userId)}!` ); + + const emojis = ["🎉", "🎊", "🥳", "👏", "🔥", "🚀", "💪"]; + + message?.react(emojis[Math.floor(Math.random() * emojis.length)].toString()); } async function solveTaskLogic(client: Client, interaction: CommandInteraction) {