From afb289b65a9cb16dc4a0ac6b2510e50d1f97b282 Mon Sep 17 00:00:00 2001 From: Lea Date: Fri, 7 Apr 2023 22:16:57 +0200 Subject: [PATCH] Fix DM API token retrieval --- bot/src/bot/modules/event_handler.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bot/src/bot/modules/event_handler.ts b/bot/src/bot/modules/event_handler.ts index 40b23d8..bcf83ed 100644 --- a/bot/src/bot/modules/event_handler.ts +++ b/bot/src/bot/modules/event_handler.ts @@ -106,8 +106,7 @@ client.on('message', async message => { // Don't need to risk exposing the user to the token, so we'll send it in the nonce await message.channel.sendMessage({ - content: 'Token request granted.', - nonce: `${ulid()}; TOKEN:${token}`, + content: `Token request granted. **Do not send the content of this message to anyone!**\n$%${token}%$`, replies: [ { id: message._id, mention: false } ], }); return;