From bc41ec7f15b00740745fbfd146529855f3c27968 Mon Sep 17 00:00:00 2001 From: WubzyGD Date: Sat, 24 Jul 2021 15:43:29 -0600 Subject: [PATCH] ar templating --- events/message.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/events/message.js b/events/message.js index 83277e2..48aa70a 100644 --- a/events/message.js +++ b/events/message.js @@ -47,7 +47,7 @@ module.exports = async (client, message) => { if (message.guild && client.misc.cache.ar.has(message.guild.id) && client.misc.cache.ar.get(message.guild.id).includes(msg.trim()) && !(client.misc.cache.arIgnore.has(message.guild.id) && client.misc.cache.arIgnore.get(message.guild.id).includes(message.channel.id))) { AR.findOne({gid: message.guild.id}).then(ar => { - if (ar && ar.triggers.length && ar.triggers.includes(msg.trim())) {return message.channel.send(ar.ars[ar.triggers.indexOf(msg.trim())]);} + if (ar && ar.triggers.length && ar.triggers.includes(msg.trim())) {return message.channel.send(require('../util/response/filterresponse')(message.member, client, ar.ars[ar.triggers.indexOf(msg.trim())]));} }); }