only if message is haha yes

This commit is contained in:
Loïc Bersier 2019-07-14 11:31:56 +02:00
parent 6230437bab
commit da4865a99d

View file

@ -24,7 +24,7 @@ class messageListener extends Listener {
yes = yes.replace('yes', ''); yes = yes.replace('yes', '');
yes += 'very'; yes += 'very';
return message.channel.send(`haha${yes} yes`); return message.channel.send(`haha${yes} yes`);
} else if (message.content.toLowerCase().startsWith('haha yes')) { } else if (message.content.toLowerCase() == 'haha yes') {
return message.channel.send('haha very yes'); return message.channel.send('haha very yes');
} }