This commit is contained in:
Loic Bersier 2018-12-06 20:16:31 +01:00
parent c414ff6561
commit e02887babf

View file

@ -94,6 +94,8 @@ client.registry
} }
// auto respond to messages // auto respond to messages
else if(responseObject[message_content]) { else if(responseObject[message_content]) {
var autoresponse = new SelfReloadJSON('DiscordBot/json/autoresponse.json');
if(autoresponse[message.channel.id] == 'enable')
message.channel.send(responseObject[message_content]); message.channel.send(responseObject[message_content]);
// User autoresponse // User autoresponse
} else if(customresponse[message_content]) { } else if(customresponse[message_content]) {