From a0aeb7cdcdd879187ff36e798233386e2db9d0e9 Mon Sep 17 00:00:00 2001 From: Loic Bersier Date: Thu, 20 Sep 2018 14:03:01 +0200 Subject: [PATCH] Added auto react --- index.js | 5 +++++ react.json | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 react.json diff --git a/index.js b/index.js index 2f057724..0acf5bca 100644 --- a/index.js +++ b/index.js @@ -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]); } }); diff --git a/react.json b/react.json new file mode 100644 index 00000000..08cf4fa2 --- /dev/null +++ b/react.json @@ -0,0 +1,3 @@ +{ + "like if owned": "👍" +} \ No newline at end of file