infinite haha yes
This commit is contained in:
parent
072ac50459
commit
8748fe3bf0
1 changed files with 10 additions and 1 deletions
|
@ -18,7 +18,16 @@ class messageListener extends Listener {
|
||||||
const autoresponseStat = await autoResponseStat.findOne({where: {serverID: message.guild.id}});
|
const autoresponseStat = await autoResponseStat.findOne({where: {serverID: message.guild.id}});
|
||||||
|
|
||||||
if (autoresponseStat) {
|
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 autoresponse is enable send the response
|
||||||
if(autoresponseStat.get('stat') == 'enable' && autoresponseStat.get('serverID') == message.guild.id) {
|
if(autoresponseStat.get('stat') == 'enable' && autoresponseStat.get('serverID') == message.guild.id) {
|
||||||
// Reply with images as attachement
|
// Reply with images as attachement
|
||||||
|
|
Loading…
Reference in a new issue