dosent send message when someone say stop

This commit is contained in:
Loic Bersier 2018-12-09 00:55:01 +01:00
parent 2db0e2ef8d
commit 9eff0ce827

View file

@ -74,12 +74,14 @@ client.registry
channel.send({ embed: kickEmbed }); channel.send({ embed: kickEmbed });
}); });
client.on("message", async (message) => { client.on("message", async (message) => {
try { try {
var customresponse = new SelfReloadJSON(`./tag/${message.guild.id}.json`) var customresponse = new SelfReloadJSON(`./tag/${message.guild.id}.json`)
var autoresponse = new SelfReloadJSON('./json/autoresponse.json'); var autoresponse = new SelfReloadJSON('./json/autoresponse.json');
let message_content = message.content.toLowerCase(); let message_content = message.content.toLowerCase();
if (message_content.includes('stop')) return;
if (message.author.bot) return; { if (message.author.bot) return; {
// User autoresponse // User autoresponse