ECO server discord status bot



  • I've fixed the config of the instances currently added - please note:
    addserver command should be formatted like this:
    !addserver <name> <ip>:<port>
    example:
    !addserver main 123.123.213.123:1234

    Another case caused this difficulty was something at my query backend - fixed

    Thanks a lot for your feedback :)



  • Nothing changed, still shows as offline.



  • You may let me know which IP you've added to the server or the discords server id so that I'm able to check the difficulty more detailed.
    Please also make sure that you used the webport (not the gameport).

    If you are using the correct port you can verify while using the following service:
    http://query.li/api/eco/123.213.123.123/1234



  • https://discord.gg/JAJgTmJ

    173.249.31.159:3000



  • I can't reproduce that. I've used the bot to print the current server status on your discord, that seems to work fine:
    1_1520249087.png

    Edit: nevermind, seen your message now :D Its solved :) Thanks for the feedback



  • using domains while adding the server is supported now
    example:
    !addserver main google.com:1337



  • Works awesome thank you.



  • Heya, worked flawlessly, really cool!
    Nitpicky suggestion: Could you maybe enable customizing the formatting of the status message, or at least making line breaks and using bold titles to show the different titles of info? :D
    Thank you!



  • Hi Gabeux,

    implemented this feature for you now, updated the main thread.

    Following templating variables are available:

        {server_name}          => Server name
        {map_size}             => Map size
        {player_count}         => Current player count
        {max_players}          => Max players / player profiles available on the server
        {version}              => Eco version
        {animals}              => Animal count
        {plants}               => Plant count
        {provider}             => Hosting provider (company owning IP)
        {country}              => Country (location of IP)
        {address}              => IP + Port
        {gametime}             => time since the server is running (ingame)
        {break}                => Line break
    

    Usage example:
    !setformat Server online! Servername: {server_name}{break}Players online: {player_count}



  • Ohh lovely! Thank you kind sir!! :D



  • This post is deleted!


  • Hi,
    do you have any idea when you try the automatic off/online messages?



  • Give me a second, I'll have a look :D



  • I dont know if that works but is that scenario possible:
    Bot automaticly checks server status every X min.
    Then it compares with the current server status with the status in the variable "status" (needs to be declared). If the current status is not the status stored in the variable -> Post status in Discord & set the new status in the variable "status" and that in a loop ?



  • Okay, it took a while due to different things I was forced to do before starting working on the eco bot :D
    But now its implemented, just go to the channel you want to receive the messages to and type:
    !subscribemonitoring

    To unsubscribe just type !unsubscribemonitoring



  • @msniveau said:

    !subscribemonitoring

    Hi,
    thx that you did the code.
    One question: which is the interval the bot checks the server status?



  • Just another little thing :=) misspelling of "status"
    image.png



  • fixed the typo
    the check runs every 2 minutes



  • thx. Is there any way to donate your work?



  • not nessecary, the whole bot is currently only 300 lines long, so not complex enough :D
    just enjoy it, custom "offline" - "offline" message formats will follow

    But I've now reached the point that I need to refactor the whole thing to make this more pretty before implementing new stuff


Log in to reply