Members
-
<constant> BanchoLobbyPlayerStates :Symbol
-
Contains the different player states for players in lobbies: Ready, Not Ready, No Map.
Alias for NotReady: "Not Ready"
Alias for NoMap: "No Map"Type:
- Symbol
- Source:
Properties:
Name Type Default Description ReadySymbol NotReadySymbol NoMapSymbol -
<constant> BanchoLobbyTeamModes :number
-
The 4 different team modes in Bancho
Type:
- number
- Source:
Properties:
Name Type Default Description HeadToHeadnumber 0 TagCoopnumber 1 TeamVsnumber 2 TagTeamVsnumber 3 -
<constant> BanchoLobbyTeams
-
Contains the 2 different teams in a multiplayer lobby
- Source:
Properties:
Name Type Default Description BlueBlue RedRed -
<constant> BanchoLobbyWinConditions :number
-
The four different win conditions on Bancho
Type:
- number
- Source:
Properties:
Name Type Default Description Scorenumber 0 Accuracynumber 1 Combonumber 2 ScoreV2number 3 -
<constant> ConnectStates :Symbol
-
Contains the different connect states: Disconnected, Connecting, Reconnecting, Connected.
Type:
- Symbol
- Source:
Properties:
Name Type Default Description DisconnectedSymbol When we're purposely disconnected from Bancho or after an auth fail
ConnectingSymbol When we've opened the socket before any reconnection attempts and waiting for the Welcome packet
ReconnectingSymbol When we've gotten disconnected, and are currently waiting before trying to reconnect
ConnectedSymbol When we're online! \o/
Type Definitions
-
BanchoClientOptions
-
Options for a BanchoClient.
Type:
- object
- Source:
Properties:
Name Type Argument Default Description usernamestring Username of the user to connect to Bancho
passwordstring IRC Password of the user to connect to Bancho (see https://osu.ppy.sh/p/irc)
hoststring <optional>
"irc.ppy.sh" Custom IRC host (for proxy-ing through a firewall for example)
portnumber <optional>
6667 Custom IRC port
apiKeystring <optional>
osu! API key for API requests (see https://osu.ppy.sh/p/api). WARNING: Multiplayer lobbies won't work without an API key!
rateLimiterRateLimiter <optional>
Instance of RateLimiter from the
limiternpm module for outgoing Bancho messages. Default is safe for normal users in private messages (PM and #multiplayer channels), bots are not supposed to send public messages. Can be disabled by setting tonull.botAccountboolean <optional>
false Apply bot account rate-limits to the default RateLimiter instance if true (see https://osu.ppy.sh/wiki/en/Bot_account).
gamemodenumber <optional>
null Gamemode id to fetch users with. Defaults to null