1.) Don’t hardcode any values in, for example the max player count is hard locked to 128 slots
2.) Don’t duplicate code, you’re duplicating a ton of code between the online/offline messages, just write a function and pass the values in.
3.) Maybe use something like dot.env or just plain environment variables instead of a plain text config.json?
4.) Allow configuration of the polling frequency