don't ignore keywords from bots
cause i miss mentions from chat bridges
This commit is contained in:
parent
3aab062b09
commit
bb4e94d447
@ -241,7 +241,7 @@ client.on('message', async function(message){
|
||||
let webhook = config.mentionChannelWebhook;
|
||||
webhook = new Discord.WebhookClient(webhook.id, webhook.token);
|
||||
client.on("message", async message => {
|
||||
if (message.author.bot || message.author.id == client.user.id || !message.guild || message.guild.muted) return;
|
||||
if (message.author.id == client.user.id || !message.guild || message.guild.muted) return;
|
||||
for (let keyword of config.mentionKeywords) {
|
||||
if (message.content.toLowerCase().includes(keyword)) {
|
||||
webhook.send(`<@${client.user.id}> https://discordapp.com/channels/${message.guild ? message.guild.id + "/" : ""}${message.channel.id}/${message.id}`, {embeds:[{
|
||||
|
Loading…
x
Reference in New Issue
Block a user