From 8f95a637f5a9e8c5cd3fc75d9e76c5f0f5abe8d6 Mon Sep 17 00:00:00 2001 From: Supositware Date: Fri, 8 Feb 2019 19:06:29 +0100 Subject: [PATCH] can use the random thingy on tag --- event/listeners/message.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/event/listeners/message.js b/event/listeners/message.js index 600c53e3..7994d082 100644 --- a/event/listeners/message.js +++ b/event/listeners/message.js @@ -2,6 +2,7 @@ const { Listener } = require('discord-akairo'); const responseObject = require('../../json/reply.json'); const reactObject = require('../../json/react.json'); const imgResponseObject = require('../../json/imgreply.json'); +const rand = require('../../rand.js'); const reload = require('auto-reload'); class messageListener extends Listener { @@ -42,7 +43,9 @@ class messageListener extends Listener { // User autoresponse let customresponse = reload(`../../tag/${message.guild.id}.json`); if(customresponse[message_content]) { - message.channel.send(customresponse[message_content]); + let text = customresponse[message_content]; + text = rand.random(text, message); + message.channel.send(text); } } }