From 8748fe3bf03bb05de35ad734f1eaf73483c1b6f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Bersier?= Date: Sun, 14 Jul 2019 11:19:05 +0200 Subject: [PATCH] infinite haha yes --- event/listeners/message.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/event/listeners/message.js b/event/listeners/message.js index 16f2cbe0..5f0629a1 100644 --- a/event/listeners/message.js +++ b/event/listeners/message.js @@ -18,7 +18,16 @@ class messageListener extends Listener { const autoresponseStat = await autoResponseStat.findOne({where: {serverID: message.guild.id}}); if (autoresponseStat) { - + // Infinit haha very yes + if (message.content.toLowerCase().includes('haha very')) { + let yes = message.content.toLowerCase().replace('haha', ''); + yes = yes.replace('yes', ''); + yes += 'very'; + return message.channel.send(`haha${yes} yes`); + } else if (message.content.toLowerCase().includes('haha yes')) { + return message.channel.send('haha very yes'); + } + // If autoresponse is enable send the response if(autoresponseStat.get('stat') == 'enable' && autoresponseStat.get('serverID') == message.guild.id) { // Reply with images as attachement