forked from Supositware/Haha-Yes
startsWith and not includes
This commit is contained in:
parent
946a974cab
commit
6230437bab
1 changed files with 2 additions and 2 deletions
|
@ -19,12 +19,12 @@ class messageListener extends Listener {
|
||||||
|
|
||||||
if (autoresponseStat) {
|
if (autoresponseStat) {
|
||||||
// Infinit haha very yes
|
// Infinit haha very yes
|
||||||
if (message.content.toLowerCase().includes('haha very')) {
|
if (message.content.toLowerCase().startsWith('haha very')) {
|
||||||
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';
|
||||||
return message.channel.send(`haha${yes} yes`);
|
return message.channel.send(`haha${yes} yes`);
|
||||||
} else if (message.content.toLowerCase().includes('haha yes')) {
|
} else if (message.content.toLowerCase().startsWith('haha yes')) {
|
||||||
return message.channel.send('haha very yes');
|
return message.channel.send('haha very yes');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue