Skip to content

Commit

Permalink
Add 'removedauthmessages.ratz' file
Browse files Browse the repository at this point in the history
Added 'removedauthmessage.ratz' file to to record messages blocked out due to un-authorized users.
  • Loading branch information
Gisgar3 committed Jul 11, 2018
1 parent 14ea4e1 commit 5ba82d8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ bot.on('message', (message) => {
message.channel.send(`${message.author}, you now have access to type in the server!`);
}
else {
fs.appendFileSync("./exclude/removedauthmessages.ratz", `\r\n(${message.author.username} [${message.author.id}], ${message.createdTimestamp}) ${message.content.toString()}`);
message.delete();
message.channel.send(`${message.author}, you have not completely read the rules in order to have access to chat. To get access, re-read the rules and type the secret response message specified.`)
}
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ratzbot",
"version": "2.4.0",
"version": "2.4.1",
"description": "Discord bot for Twitch streamer ratzDoll",
"main": "main.js",
"scripts": {
Expand Down

0 comments on commit 5ba82d8

Please sign in to comment.