ignore webhooks
This commit is contained in:
Lamp 2019-05-21 23:17:07 +00:00
parent e1d48d5cf6
commit 04db3184b7
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.id == dClient.user.id /*|| message.content.startsWith('!')*/) return;
if (message.channel.id !== DiscordChannelID || message.author.id == dClient.user.id || !message.member /*|| message.content.startsWith('!')*/) return;
var str = message.cleanContent;
var aname = `${message.member.displayName}#${message.member.user.discriminator}`;
if (str.startsWith('/') || str.startsWith('\\'))