Skip to content

Commit

Permalink
Updated easter egg efficiency
Browse files Browse the repository at this point in the history
  • Loading branch information
gideontong committed May 8, 2019
1 parent 8319190 commit 4f8e78c
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,25 @@ bot.on("ready", function () {
})
});

/*bot.on('message', msg => {
if (msg.content.toLowerCase().includes('i love you')) {
msg.reply('i love paul too');
}
});
bot.on('message', msg => {
if (msg.content.toLowerCase().includes('paul is')) {
content = "";
var attach;
if (msg.content.toLowerCase().includes('i love you')) {
if(msg.author.username == "pyu"){
content += "LOVE YOU TOO :heart: :heart_eyes: :heartpulse:";
} else {
content += "I love Paul, did you know that!?";
}
} else if (msg.content.toLowerCase().includes('paul is')) {
msg.reply('I don\'t have any time for any gossip now');
}
});
bot.on('message', msg => {
if (msg.content.toLowerCase().includes('dress')) {
attach = new Discord.Attachment("generates/dress.png")
msg.channel.send(attach)
}
});
bot.on('message', msg => {
if (msg.content.toLowerCase().includes('nissan')) {
else if (msg.content.toLowerCase().includes('nissan')) {
attach = new Discord.Attachment("generates/nissan.png")
msg.channel.send(attach)
}
});*/
if(content.length > 0 || attach != null) {
msg.reply(content, file = attach);
}
});

0 comments on commit 4f8e78c

Please sign in to comment.