From bee954f15fa87098361bfbf3e9f3a8ee904155dd Mon Sep 17 00:00:00 2001 From: "Jill \"oatmealine\" Monoids" Date: Sat, 21 Jan 2023 00:00:16 +0300 Subject: [PATCH] log stuff --- src/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/index.ts b/src/index.ts index d874b03..2d9d512 100644 --- a/src/index.ts +++ b/src/index.ts @@ -200,4 +200,9 @@ bot.on('interactionCreate', async (interaction) => { } }); +bot.on('messageDelete', (msg) => { + console.log(`${msg.author?.username}#${msg.author?.discriminator} in #${msg.channel instanceof Discord.TextChannel ? msg.channel.name : '?'} at ${msg.createdAt.toISOString()}`); + console.log(`${msg.content}`); +}); + bot.login(token);