1
0
Fork 0

infinite haha yes

akairo
Loïc Bersier 5 years ago
parent 072ac50459
commit 8748fe3bf0

@ -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

Loading…
Cancel
Save