Documentation ¶
Index ¶
- func ClearSession(sessionID string)
- func CountItem(echoRequest *skillserver.EchoRequest) (response *skillserver.EchoResponse)
- func CreateLoadout(request *skillserver.EchoRequest) (response *skillserver.EchoResponse)
- func CurrentMeta(echoRequest *skillserver.EchoRequest) *skillserver.EchoResponse
- func CurrentTrialsMap(request *skillserver.EchoRequest) (response *skillserver.EchoResponse)
- func CurrentTrialsWeek(request *skillserver.EchoRequest) (response *skillserver.EchoResponse)
- func DestinyJoke(request *skillserver.EchoRequest) (response *skillserver.EchoResponse)
- func EquipNamedLoadout(request *skillserver.EchoRequest) (response *skillserver.EchoResponse)
- func GetCurrentCrucibleRank(request *skillserver.EchoRequest) *skillserver.EchoResponse
- func HelpPrompt(echoRequest *skillserver.EchoRequest) (response *skillserver.EchoResponse)
- func InitEnv(redisURL string)
- func ListLoadouts(request *skillserver.EchoRequest) (response *skillserver.EchoResponse)
- func MaxPower(request *skillserver.EchoRequest) (response *skillserver.EchoResponse)
- func PersonalTopWeapons(request *skillserver.EchoRequest) (response *skillserver.EchoResponse)
- func RandomGear(request *skillserver.EchoRequest) (response *skillserver.EchoResponse)
- func SaveSession(session *Session)
- func TopActivities(echoRequest *skillserver.EchoRequest) *skillserver.EchoResponse
- func TransferItem(request *skillserver.EchoRequest) (response *skillserver.EchoResponse)
- func UnloadEngrams(request *skillserver.EchoRequest) (response *skillserver.EchoResponse)
- func WelcomePrompt(echoRequest *skillserver.EchoRequest) (response *skillserver.EchoResponse)
- type Handler
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearSession ¶
func ClearSession(sessionID string)
ClearSession will remove the specified session from the local cache, this will be done when the user completes a full request session.
func CountItem ¶
func CountItem(echoRequest *skillserver.EchoRequest) (response *skillserver.EchoResponse)
CountItem calls the Bungie API to see count the number of Items on all characters and in the vault.
func CreateLoadout ¶ added in v1.2.0
func CreateLoadout(request *skillserver.EchoRequest) (response *skillserver.EchoResponse)
CreateLoadout will determine the user's current character and create a new loadout based on their currently equipped items. This loadout is then serialized and persisted to a persistent store.
func CurrentMeta ¶ added in v1.8.1
func CurrentMeta(echoRequest *skillserver.EchoRequest) *skillserver.EchoResponse
CurrentMeta will present data to the user from Charlemagne about which weapons are currently being used the most in game. This could be on a particular platform or in a particular game mode (PvP, nightfall, raid, etc.)
func CurrentTrialsMap ¶ added in v0.2.0
func CurrentTrialsMap(request *skillserver.EchoRequest) (response *skillserver.EchoResponse)
CurrentTrialsMap will return a brief description of the current map in the active Trials of the Nine week.
func CurrentTrialsWeek ¶ added in v0.2.0
func CurrentTrialsWeek(request *skillserver.EchoRequest) (response *skillserver.EchoResponse)
CurrentTrialsWeek will return a brief description of the current map in the active Trials of the Nine week.
func DestinyJoke ¶ added in v1.0.0
func DestinyJoke(request *skillserver.EchoRequest) (response *skillserver.EchoResponse)
DestinyJoke will return the desired text for a random joke from the database.
func EquipNamedLoadout ¶ added in v1.2.0
func EquipNamedLoadout(request *skillserver.EchoRequest) (response *skillserver.EchoResponse)
EquipNamedLoadout will take the name of a loadout and try to retrieve it from the database and equip it on the user's currently active character.
func GetCurrentCrucibleRank ¶ added in v1.9.3
func GetCurrentCrucibleRank(request *skillserver.EchoRequest) *skillserver.EchoResponse
GetCurrentCrucibleRank will summarize the player's current ranking in the Crucible. This is broken down into Glory and Valor.
func HelpPrompt ¶
func HelpPrompt(echoRequest *skillserver.EchoRequest) (response *skillserver.EchoResponse)
HelpPrompt provides the required information to satisfy the HelpIntent built-in Alexa intent. This should provider information to the user to let them know what the skill can do without providing exact commands.
func InitEnv ¶ added in v1.1.0
func InitEnv(redisURL string)
InitEnv provides a package level initialization point for any work that is environment specific
func ListLoadouts ¶ added in v1.8.1
func ListLoadouts(request *skillserver.EchoRequest) (response *skillserver.EchoResponse)
ListLoadouts provides a speech response back to the user that lists the names of the currently saved loadouts that are found in the DB.
func MaxPower ¶ added in v1.2.0
func MaxPower(request *skillserver.EchoRequest) (response *skillserver.EchoResponse)
MaxPower will equip the loadout on the current character that provides the maximum amount of power.
func PersonalTopWeapons ¶ added in v0.2.0
func PersonalTopWeapons(request *skillserver.EchoRequest) (response *skillserver.EchoResponse)
PersonalTopWeapons will check Trials Report for the most used weapons for the current user.
func RandomGear ¶ added in v1.8.1
func RandomGear(request *skillserver.EchoRequest) (response *skillserver.EchoResponse)
RandomGear will equip random gear for each of the current characters gear slots (excluding things like ghost and class items). It is possible to randomize only weapons or weapons and armor.
func SaveSession ¶
func SaveSession(session *Session)
SaveSession will persist the given session to the cache. This will allow support for long running Alexa sessions that continually prompt the user for more information.
func TopActivities ¶ added in v1.8.1
func TopActivities(echoRequest *skillserver.EchoRequest) *skillserver.EchoResponse
TopActivities is responsible for describing to the user, the most popular activities currently being played in game. This could help users decide what activities have the best rewards or can be part of the "grind" for better gear.
func TransferItem ¶
func TransferItem(request *skillserver.EchoRequest) (response *skillserver.EchoResponse)
TransferItem will attempt to transfer either a specific quantity or all of a specific item to a specified character. The item name and destination are the required fields. The quantity and source are optional.
func UnloadEngrams ¶ added in v0.3.0
func UnloadEngrams(request *skillserver.EchoRequest) (response *skillserver.EchoResponse)
UnloadEngrams will take all engrams on all of the current user's characters and transfer them all to the vault to allow the player to continue farming.
func WelcomePrompt ¶
func WelcomePrompt(echoRequest *skillserver.EchoRequest) (response *skillserver.EchoResponse)
WelcomePrompt is responsible for prompting the user with information about what they can ask the skill to do.
Types ¶
type Handler ¶ added in v0.3.0
type Handler func(*skillserver.EchoRequest) *skillserver.EchoResponse
Handler is the type of function that should be used to respond to a specific intent.
func AuthWrapper ¶ added in v0.3.0
AuthWrapper is a handler function wrapper that will fail the chain of handlers if an access token was not provided as part of the Alexa request
type Session ¶
type Session struct { ID string Action string ItemName string DestinationClassHash int SourceClassHash int Quantity int }
Session is responsible for storing information related to a specific skill invocation. A session will remain open if the LaunchRequest was received.
func GetSession ¶
GetSession will attempt to read a session from the cache, if an existing one is not found, an empty session will be created with the specified sessionID.