Closed TheZackCodec closed 4 years ago
@BinaryCrafter Here you go, only two years late lol
Hey! Thanks for the PR. These are some good features, and I'd love to accept this, but there are a few comments I must make.
tail
command? With testing, the tail
command would not work with these changes, can you update it if possible? (If you are not familiar I would be happy to lend a hand with that)Other than that, they are some welcome changes, can't wait to merge them in!
@destruc7i0n At first I wanted to make this work with MC instead of just reading the log file but then i realized that the whole point of this repo was to provide something that just read the log file and nothing more. To answer your questions.
Possible Bug: it seems that for some reason every day or so the chat crashes because of an ECONNRESET, Looking at the log it looks like an error from discord. This however really ruins the "Joined" server feature since it looks like no one is ever joining since the chat will never report it. I've attached a log here if you want to take a look. I just want to make sure that the error it isn't related to my changes. This has happened before in the master branch however, it seems more frequent now. maybe you can handle the error and retry the connection instead of killing the chat.
chat_server_error.txt chat_server_error2.txt
I'm about to graduate soon so I wont have time to update this pull request until later next month.
Hey, any update on this?
You could edit it yourself
Also why does it use webhooks for joining and leaving?
Closing due to use and update in #47 ! Thanks again.
Displaying when players join/leave the server
This feature is mainly to make it easy to see when people join. In my experience, when other on my server see that other players have joined, it causes them to hop on as well. It looks OK without web-hooks but it looks way better with them.
Example:
Debug Output:
Displaying when players earn and achievement
This simply shows when any player earns an achievement.
Example:
Debug Output:
Displaying when players die
This simply shows when a player dies in chat, I went through every possible death message in Minecraft and condensed them down into the DEATH_KEY_WORDS list in the config file.
Example:
Debug Output: