Show bot or ! messages except from self
This commit is contained in:
parent
2da9371fa5
commit
e1d48d5cf6
|
@ -160,7 +160,7 @@ global.createMPPbridge = function createMPPbridge(room, DiscordChannelID, site =
|
||||||
{
|
{
|
||||||
let msgQueue = [];
|
let msgQueue = [];
|
||||||
dClient.on('message', async message => {
|
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 str = message.cleanContent;
|
||||||
var aname = `${message.member.displayName}#${message.member.user.discriminator}`;
|
var aname = `${message.member.displayName}#${message.member.user.discriminator}`;
|
||||||
if (str.startsWith('/') || str.startsWith('\\'))
|
if (str.startsWith('/') || str.startsWith('\\'))
|
||||||
|
|
Loading…
Reference in New Issue