Show bot or ! messages except from self

This commit is contained in:
Lamp 2019-05-16 21:00:27 +00:00
parent 2da9371fa5
commit e1d48d5cf6
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ global.createMPPbridge = function createMPPbridge(room, DiscordChannelID, site =
{
let msgQueue = [];
dClient.on('message', async message => {
if (message.channel.id !== DiscordChannelID || message.author.bot || message.content.startsWith('!')) return;
if (message.channel.id !== DiscordChannelID || message.author.id == dClient.user.id /*|| message.content.startsWith('!')*/) return;
var str = message.cleanContent;
var aname = `${message.member.displayName}#${message.member.user.discriminator}`;
if (str.startsWith('/') || str.startsWith('\\'))