destruc7i0n / shulker

A Discord to Vanilla Minecraft Chat Gateway
ISC License
135 stars 47 forks source link

Added ability to append The number of players online to server username #55

Open TheZackCodec opened 4 years ago

TheZackCodec commented 4 years ago

Tested on 2 x 24/7 servers

Does not conflict with pull request #54

Details

destruc7i0n commented 4 years ago

How about using the server queries for the player count? There are libs for it available, and even a web based API: https://mcapi.us

TheZackCodec commented 4 years ago

@destruc7i0n Fine you got me, I was a little lazy here. I wanted something more internal. A bunch of the APIs do not like more than one query ever minute and most cache for 5-10 minutes and I didn't want stale data. but let me look more into the server queries and i'll making a data-structure to grab that.

At least check out my regex improvements in #54 while I actually implement something more production ready. I have a few other features i want to implement and honestly getting server queries working would make our lives easier