fluxpoint.paths.misc

Module Contents

Classes

AboutUs

A class which gives info from the json data of about us

MinecraftPingData

A class which gives info from the json data of Minecraft server ping

Misc

NSFW Api endpoints documented in https://bluedocs.page/fluxpoint-api/misc

class fluxpoint.paths.misc.AboutUs(json_data)[source]

A class which gives info from the json data of about us

Parameters:

json_data (dict) – The json data from the api

Acessible Paramters:
id:

[int] ID of the person

name:

[str] Discord username of the person

token:

[str] Fluxpoint token of the person

created:

[datetime.datetime] Account creation date

expire:

[Optional[datetime.datetime]] Expiration date

donator:

[bool] If the perso is a dontor in fluxpoint or not

owner:

[bool] If the person is owner or not

disabled:

[bool] If the acc is disabled or not

status:

[str] HTTP Status

code:

[int] HTTP Status code

message:

[str] Message returned by the api

__str__(self)[source]

Return str(self).

Return type:

str

class fluxpoint.paths.misc.MinecraftPingData(json_data)[source]

A class which gives info from the json data of Minecraft server ping

Parameters:

json_data (dict) – The json data from the api

Acessible Paramters:
online:

[bool] If the server is online or not

icon:

[str] URL of the server icon

“motd”: [str] serverinfo :playersOnline: [int] Amount of players online :playersMax: [int] Max amount of players :version: [str] Minecraft version :fullQuery: [bool] If the query was full or not :players: [Optional[list]] List of players :status: [str] HTTP Status :code: [int] HTTP Status code :message: [str] Message returned by the api

__str__(self)[source]

Return str(self).

Return type:

str

__repr__(self)[source]

Return repr(self).

Return type:

str

class fluxpoint.paths.misc.Misc(api_token)[source]

Bases: fluxpoint.http.BaseHTTP

NSFW Api endpoints documented in https://bluedocs.page/fluxpoint-api/misc

Parameters:

api_token (str) –

__str__(self)[source]

Return str(self).

Return type:

str

await me(self)[source]

Get info on the current user

Returns:

The class containing all the information about the current user

Return type:

AboutUs

await mc_ping(self, host, port=25565)[source]

Ping a minecraft server

Parameters:
  • host (str) – The hostname of the server

  • port (int) – The port of the server

Return type:

MinecraftPingData