Logger Discord code example
Example 1: discord action log bot python
discord action log bot python
Example 2: how to log all messages discord.js
const fetched = await client.channels.get("505989241600213012")
.fetchMessages({limit: 1})
.then(messages => console.log(`[${messages.first().author.name}]${messages.first().content}`));