1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice
Wynncraft, the Minecraft MMORPG. Play it now on your Minecraft client at (IP): play.wynncraft.com. No mods required! Click here for more info...

Tool Discord Bot For Wynn-utility Commands! (moto-bot)

Discussion in 'Your Work' started by motoki1, Apr 4, 2018.

Thread Status:
Not open for further replies.
  1. LanielYoungAgain

    LanielYoungAgain Secretly Ragnar

    Messages:
    37
    Likes Received:
    17
    Trophy Points:
    49
    Guild:
    Minecraft:
    How did you do the >up command?
    As far as I know, there is no such feature in the current API...
     
  2. motoki1

    motoki1 The Damage Calculation Scientist HERO

    Messages:
    3,344
    Likes Received:
    4,493
    Trophy Points:
    217
    Guild:
    Minecraft:
    Yep you're right, there's no way to directly get the uptime of each servers from the API, so I just keep spamming the online server list (online players list, actually), and see if the server pops up or goes off.
    And that's it, really. So it's not showing 100% correct data, and what's more, it gets screwed if the bot stopped updating the server list for some reason.
     
  3. LanielYoungAgain

    LanielYoungAgain Secretly Ragnar

    Messages:
    37
    Likes Received:
    17
    Trophy Points:
    49
    Guild:
    Minecraft:
    Wouldn't that cause a problem if too many people are using the bot and you get at the 25 requests/minute threshold?
    Or are you doing some IP-swapping voodoo?
     
  4. motoki1

    motoki1 The Damage Calculation Scientist HERO

    Messages:
    3,344
    Likes Received:
    4,493
    Trophy Points:
    217
    Guild:
    Minecraft:
    Nope, firstly many "up" command requests doesn't mean many API requests on my side. The bot keeps requesting online players list and territory list every 30s, which sums to 40 times/10 mins.
    The rate limit is 250 reqs/10 mins per IP, so that's way under the limit. It uses some more requests on other things such as player stats request, but I implemented an internal rate limiter not to go over the limit so that's not a problem either.
     
  5. LanielYoungAgain

    LanielYoungAgain Secretly Ragnar

    Messages:
    37
    Likes Received:
    17
    Trophy Points:
    49
    Guild:
    Minecraft:
    Thanks a lot!
     
    motoki1 likes this.
Thread Status:
Not open for further replies.