Skip to content

serverUPSHandler

oof2win2 edited this page May 3, 2021 · 1 revision

Classes

_UPSHandler

UPS handler, generates data that can be fetched. Doesn't historically store it

Typedefs

UPS : Object

_UPSHandler

UPS handler, generates data that can be fetched. Doesn't historically store it

Kind: global class

new _UPSHandler(servers)

Param Type Description
servers Array.<Object> Array of servers from servers.js

_UPSHandler.exportData() ⇒ Array.<UPS>

Get current data for handling

Kind: instance method of _UPSHandler
Returns: Array.<UPS> - - Collected data

UPS : Object

Kind: global typedef
Properties

Name Type Description
discordid discord.Snowflake Server's Discord channel ID
discordname String Server's Discord channel name
ups Number Server's last measured UPS
previousTick Number Server's last measured gametick
playercount Number Number of players on the server
Clone this wiki locally