forked from Supositware/Haha-Yes
Added auto react
This commit is contained in:
parent
aab02e5be5
commit
a0aeb7cdcd
2 changed files with 8 additions and 0 deletions
5
index.js
5
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]);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
3
react.json
Normal file
3
react.json
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"like if owned": "👍"
|
||||
}
|
Loading…
Reference in a new issue