Skip to content

Commit

Permalink
Remove autodelete on certain responses
Browse files Browse the repository at this point in the history
  • Loading branch information
fatton139 committed May 12, 2018
1 parent af74f81 commit 858c142
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,7 @@ bot.on('message', (message) => {
chatBot.ask(message.content, (err, res) => {
let response = res + " " + messageStyles[randInt(0,
messageStyles.length - 1)];
message.channel.send(response).then((message) => {
message.delete(3600000);
});
message.channel.send(response);
});
});
} else {
Expand All @@ -115,9 +113,7 @@ bot.on('message', (message) => {
else
response = quoteRes.author + " said - " + quoteRes.quote +
" " + style;
message.channel.send(response).then((message) => {
message.delete(3600000);
});
message.channel.send(response);
});
}
}
Expand All @@ -126,17 +122,13 @@ bot.on('message', (message) => {
!message.author.bot && message.content[0] != "!") {
message.channel.send("PUBG aka PlayerUnknown's Battle Grounds is " +
"trash, Fortnite is better ^__^ " + getTargetString(targets) +
" fortnite?").then((message) => {
message.delete(3600000);
});
" fortnite?");
}

if ((message.content.replace(/\s/g, '').toLowerCase().search("fortnite") !=
-1) && (!message.author.bot && message.content[0] != "!")) {
let response = messageStyles[randInt(0, messageStyles.length - 1)];
message.channel.send(response).then((message) => {
message.delete(3600000);
});
message.channel.send(response);
}

if (message.content.startsWith("!fortnite")) {
Expand Down

0 comments on commit 858c142

Please sign in to comment.