Added auto react

This commit is contained in:
Loic Bersier 2018-09-20 14:03:01 +02:00
parent aab02e5be5
commit a0aeb7cdcd
2 changed files with 8 additions and 0 deletions

View file

@ -2,6 +2,7 @@ const { CommandoClient } = require('discord.js-commando');
const path = require('path');
const { token, prefix, botID, statsChannel, ownerID, supportServer, activity } = require('./config.json');
const responseObject = require("./reply.json");
const reactObject = require("./react.json");
// Prefix and ownerID and invite to support server
const client = new CommandoClient({
@ -67,6 +68,10 @@ client.registry
let message_content = message.content.toLowerCase();
if(responseObject[message_content]) {
message.channel.send(responseObject[message_content]);
};
if(reactObject[message_content]) {
message.react(reactObject[message_content]);
}
});

3
react.json Normal file
View file

@ -0,0 +1,3 @@
{
"like if owned": "👍"
}