Forwards messages from one channel to your mail channel. Change the channel ID and prefix to what you want for your server.
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
let message = context.params.event.content;
let mail = context.params.event.content.split(' ').slice(1).join(' ');
if (message.startsWith(`MD`)) { //prefix of your mail
await lib.discord.channels['@0.0.6'].messages.create({
channel_id: `859881268967374848`, //your mail channel ID
content: `Mail
Nadawca: ${context.params.event.author.username}
Teść: ${mail}`
});
}