Skip to content

HaCsO/Byond-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Byond-API

A simple and convenient extension that can be used to work with the servers of the game Space Station 13 based on the BayStation build.

supported builds = ["bay", "paradise"]

Examples

from Byond_API import ByondAPI
servers = ByondAPI()
servers.add_server("ss220", "bay" ('game.ss220.space' ,7725))
server_info = servers.get_server_info("ss220")
server_revision = servers.get_server_revision("ss220")
server_manifest = servers.get_server_manifest("ss220")

Proc's

def add_server(name: str, build: str, data: tuple) -> None:
def get_server_revision(server:str=None) -> Info:
def get_server_info(server:str=None) -> Info:
def get_server_manifest(server:str=None) -> Info:

Info object

Vars:
    Type - Type of Info object (Info, Revision, Manifest)
    raw_data - Raw dict of data

    for Info:
        version
        mode
        can_respawn 
        can_enter
        can_vote
        ai
        host
        players_num
        station_time
        round_duration
        round_time
        map
        ticker_state
        admins_num
        players	
        admins
        active_players
    for Revision:
        gameid
        dm_version
        dm_build
        dd_verion 
        dd_build
        revision
        git_branch
        date
    for Manifest:
        manifest

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages