Module

ihlManager

Classes

IHLManager

Mixins

EventListeners
LobbyQueueHandlers
LobbyStateHandlers

Methods

inner findUser(guild, member) → {Array}

Searches the discord guild for a member.

Parameters:
Name Type Description
guild external:Guild

A list of guilds to initialize leagues with.

member string | external:GuildMember

A name or search string for an inhouse player or their guild member instance.

View Source lib/ihlManager.js, line 43

The search result in an array containing the user record, discord guild member, and type of match.

Array

async inner loadInhouseStates(guilds, leagues) → {Array.<module:ihl.InhouseState>}

Maps league records to inhouse states.

Parameters:
Name Type Description
guilds Array.<external:Guild>

A list of guilds to initialize leagues with.

leagues Array.<module:db.League>

A list of database league records.

View Source lib/ihlManager.js, line 129

The inhouse states loaded from league records.

Array.<module:ihl.InhouseState>

async inner loadInhouseStatesFromLeagues(guilds) → {Array.<module:ihl.InhouseState>}

Gets all league records from the database turns them into inhouse states.

Parameters:
Name Type Description
guilds Array.<external:Guild>

A list of guilds to initialize leagues with.

View Source lib/ihlManager.js, line 138

The inhouse states loaded from all league records.

Array.<module:ihl.InhouseState>

Type Definitions

eventCallback()

Callback for a lobby processing event.

View Source lib/ihlManager.js, line 989

Events

empty

IHLManager event queue empty event.

View Source lib/ihlManager.js, line 948

EVENT_MATCH_STATS

Event for returning stats from a lobby.

Parameters:
Name Type Description
lobby module:db.Lobby

The lobby with stats.

View Source lib/matchTracker.js, line 245

ready

IHLManager ready event.

View Source lib/ihlManager.js, line 271