From 43b3fd3c16bf04330e677162c078a6463cbd841e Mon Sep 17 00:00:00 2001 From: WubzyGD Date: Mon, 21 Feb 2022 20:49:36 -0700 Subject: [PATCH] AR templating --- events/messageCreate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/events/messageCreate.js b/events/messageCreate.js index 14aa1a4..cadad37 100644 --- a/events/messageCreate.js +++ b/events/messageCreate.js @@ -94,7 +94,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())]).catch(() => {});} + 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())])).catch(() => {});} }); }