Implements functionality for parsing and responding to Pusher events from the public HTB Shoutbox.
- Source:
Classes
Methods
(inner) parsePusherEvent(data, channel) → {string}
- Source:
Handles a single Pusher achievement message, sending it to our announcement channel as a pretty embed if it concerns our team.
Parameters:
| Name | Type | Description | 
|---|---|---|
| data | Object | Contains the Pusher event data. | 
| channel | Discord.Channel | The Discord channel to send the announcement to, if one is configured. | 
Returns:
- Debug description of the event / achievement.
- Type
- string
Type Definitions
HtbPusherSubscription
- Source:
Properties:
| Name | Type | Description | 
|---|---|---|
| client | number | The Pusher Client instance. | 
| channel | string | The channel being listened on. | 
Class representing a HTB challenge / box creator.