MonkeyLogs538
- 5 Devlogs
- 21 Total hours
Self-hostable Discord bot for uploading Minecraft logs to an mclogs instance.
Self-hostable Discord bot for uploading Minecraft logs to an mclogs instance.
Made it now packaged as a docker container, fixed some bugs and wrote a readme with instructions for self-hosting
Also now have an instance of it running on my homelab
Some changes over the past few days:
Log files will now automatically be detected (current filter is any file ending in .log) and uploaded 🎉
I have now fully implemented the command for uploading a log. It now rejects binary files like images or videos, correctly reads when the file isn’t UTF8 formatted and allows deleting the uploaded log in case it was the wrong file or something.
I’ve found that Kotlin is actually really nice. I especially like how it allows writing such unreadable code that I can’t understand it even 5 minutes after writing it
I also spent an hour or so in termux on my phone (was bored on a bus) setting up an instance of mclogs on my homelab and the bot now allows setting a custom instance url as well.
Next step will be having it detect sent log files and automatically upload them
I really liked the nullability stuff Kotlin has when I was writing a multiloader/version convention plugin for my mods, so I decided to use Kotlin to get more familiar with it in general usage. I saw someone talking about the Kord library a while back, so I went with that.
Safe to say that I’m still quite unfamiliar with Kotlin’s syntax (using it in gradle buildscripts is much much simpler), and I couldn’t really find anything great on Kord other than the simple example usage https://github.com/kordlib/kord/tree/main/core , but it definitely is able to play ping-pong at the very least :D