fixed infinit haha yes

This commit is contained in:
loicbersier 2019-07-14 19:39:38 +02:00
parent da4865a99d
commit 37913d8dba

View file

@ -19,7 +19,7 @@ class messageListener extends Listener {
if (autoresponseStat) { if (autoresponseStat) {
// Infinit haha very yes // Infinit haha very yes
if (message.content.toLowerCase().startsWith('haha very')) { if (message.content.toLowerCase().startsWith('haha very') && message.content.toLowerCase().endsWith('yes')) {
let yes = message.content.toLowerCase().replace('haha', ''); let yes = message.content.toLowerCase().replace('haha', '');
yes = yes.replace('yes', ''); yes = yes.replace('yes', '');
yes += 'very'; yes += 'very';