Added better message logging

This commit is contained in:
CBenni 2017-12-12 03:08:13 +01:00
parent 0839a8e037
commit dcf20255ee

View file

@ -191,7 +191,7 @@ function loadImage(url) {
}
client.on('message', async function (message) {
console.log(message.cleanContent);
console.log(`[${message.guild.name} - ${message.channel.name}] ${message.author.username}#${message.author.discriminator}: ${message.cleanContent}`);
if(message.cleanContent.startsWith('/invite')) {
message.channel.send(`Invite link: <${invitelink}>`);