From 2809deb3dc9ab5661df43637fef08f8079bae8f0 Mon Sep 17 00:00:00 2001 From: WubzyGD Date: Sat, 24 Jul 2021 16:46:00 -0600 Subject: [PATCH] buggybois --- events/message.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/events/message.js b/events/message.js index 48aa70a..c698b9a 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(require('../util/response/filterresponse')(message.member, client, ar.ars[ar.triggers.indexOf(msg.trim())]));} + if (ar && ar.triggers.length && ar.triggers.includes(msg.trim())) {require('../util/response/filterresponse')(message.member, client, ar.ars[ar.triggers.indexOf(msg.trim())]).then(t => (message.channel.send(t)));} }); }