game
- Description:
Game Command
- Source:
Members
(static) exports.condition :boolean
Type:
- boolean
(static) exports.definition :TextDecoderCommon.CommandDefinition
Type:
- TextDecoderCommon.CommandDefinition
Methods
(static) exports.callback()
(static) exports.handler()
(static) getCallbackData(data) → {string}
- Description:
Generate callback data
- Source:
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | Callback data inputs |
Returns:
- Type
- string
(async, static) getGamesFromRedis(key, start, stopnullable)
- Description:
Get list of games from Redis
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
key |
string | Redis key for results |
|
start |
number | Starting index |
|
stop |
number |
<nullable> |
Last index (including) |
Returns:
(async, static) getHltbInfo()
- Description:
Get HLTB info
- Source:
Parameters:
Type | Description |
---|---|
Object |
Returns:
(static) getNameForButton(indexnullable, selectednullable) → {string}
- Description:
Get button's name from game details
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
|
Object | Game details |
||
index |
number |
<nullable> |
null
|
Game index |
selected |
number |
<nullable> |
null
|
Current game index selection |
Returns:
- Type
- string
(static) getTextFromGameDetail() → {string}
- Description:
Transform game details to text
- Source:
Parameters:
Type | Description |
---|---|
Returns:
- Type
- string
(async, static) saveResults(key, games)
- Description:
Save RAWG.io results in redis for quick access
- Source:
Parameters:
Name | Type | Description |
---|---|---|
key |
string | Redis key |
games |
Array.<object> | Game details |
(async, static) searchRAWG() → {Array.<object>}
- Description:
Get search results
- Source:
Parameters:
Type | Description |
---|---|
Object | Search parameters |
Returns:
- Type
- Array.<object>