log stuff

This commit is contained in:
Jill 2023-01-21 00:00:16 +03:00
parent 884ec307f4
commit bee954f15f
1 changed files with 5 additions and 0 deletions

View File

@ -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);