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 });
});
client.on("message", async (message) => {
try {
var customresponse = new SelfReloadJSON(`./tag/${message.guild.id}.json`)
var autoresponse = new SelfReloadJSON('./json/autoresponse.json');
let message_content = message.content.toLowerCase();
if (message_content.includes('stop')) return;
if (message.author.bot) return; {
// User autoresponse