Skip to content

Commit

Permalink
Merge pull request #11 from Gisgar3/prerelease
Browse files Browse the repository at this point in the history
Add declarations to 'master' branch
  • Loading branch information
Gisgar3 authored Jul 15, 2018
2 parents 0c8d53d + 3e11bb2 commit bab26bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ bot.on('message', (message) => {
else {
if (fs.readFileSync("./exclude/users.ratz").includes(message.author.id.toString()) == false) {
if (message.author.username == "GitHub" && message.author.bot == 1) {

// Do nothing
}
else {
if (message.content.toString() == "/ratz slimedog") {
Expand Down Expand Up @@ -297,7 +297,7 @@ bot.on('message', (message) => {
// -----TOPIC DETECTION AND REVIEW-----
if ((message.content.includes("XXXTentacion") || message.content.includes("xxxtentacion")) && (message.content.includes("death") || message.content.includes("died"))) {
if (fs.readFileSync("./exclude/approvedmessages.ratz").includes(message.content.toString())) {
// Nothing
// Do nothing
}
else {
fs.appendFileSync("./exclude/bannedmessages.ratz", `\r\n(${message.author.username} [${message.author.id}], ${message.createdTimestamp}) ${message.content.toString()}`);
Expand Down

0 comments on commit bab26bf

Please sign in to comment.