Jump to content

Discord.js Own server API


Yuuki_Yukari

Recommended Posts

Heya fellow Discord Bot developers and MineHut community!

I've been trying to make a bot on discord to check on our server status, like if its online or offline, how many people are playing, and so on. But for some reason if I try the minecraft API to check on servers my log gives out "0 of 10 players are playing" though im logged in. Also our server has more then 10 slots open.

I've came to the solution, that this may be caused by Minehut itself duo bot protection in any case. But I'm pretty sure there is still a solution.
Doesn't Minehut have any kind of API to check on our own servers directlly?

I hope you guys get what I mean.

EDIT: Apperentlly after 10 minutes it decided I'm finally online. But that doesn't fix the max players.

Wish you a great day.

 

Love,

Yuuki 

Edited by Yuuki_Yukari
Link to comment
Share on other sites

Minehut does have a API you can use in Javascript,

example: http://prntscr.com/pxfvkm

If you want to explore more about the API, check out the only doc I could find https://api.bennydoesstuff.me/

(Note that this API is outdated and authentication requests may not work)

Santio71 -> Developer

Development Lead for Minehut Events Team


First Joined: Jan. 24, 2016

[VIP]~2019

Joined CET: July 22, 2019 (About 1.75 years ago) 

[PRO]: May 6, 2020

Rejoined CET: June 15, 2020

Moderator: December 19, 2022

himods_1_464x213.pngok3.png.9f407538426375980dbfd1a70bd93a74.pngok2.png.2d1e6960fee974293bc3aaebeb41d5db.png

Link to comment
Share on other sites

On 11/15/2019 at 4:02 PM, Santio71 said:

Minehut does have a API you can use in Javascript,

example: http://prntscr.com/pxfvkm

If you want to explore more about the API, check out the only doc I could find https://api.bennydoesstuff.me/

(Note that this API is outdated and authentication requests may not work)

I made updated api docs, here they are:

https://deltarays.herokuapp.com/minehut/apidocs

Link to comment
Share on other sites

On 11/15/2019 at 1:56 PM, Yuuki_Yukari said:

Heya fellow Discord Bot developers and MineHut community!

I've been trying to make a bot on discord to check on our server status, like if its online or offline, how many people are playing, and so on. But for some reason if I try the minecraft API to check on servers my log gives out "0 of 10 players are playing" though im logged in. Also our server has more then 10 slots open.

I've came to the solution, that this may be caused by Minehut itself duo bot protection in any case. But I'm pretty sure there is still a solution.
Doesn't Minehut have any kind of API to check on our own servers directlly?

I hope you guys get what I mean.

EDIT: Apperentlly after 10 minutes it decided I'm finally online. But that doesn't fix the max players.

Wish you a great day.

 

Love,

Yuuki 

https://deltarays.herokuapp.com/minehut/apidocs/ for the updated minehut api docs. If you want to view server data using the api you can't use vixio on minehut as sending requests on minehut requires reqn (you can send some basic get requests with skquery but if you want to be able to use all methods (GET, POST, PUT, ...) you need to use a service that's out of minehut), you could code your own discord.js bot and host it somewhere and then use the node-fetch node package to send requests to the api

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...