Given a query time measurement, calculate a new approximate query time based on the weighted averages of the old value and said new measurement.
Creates a Twitch poll in the specified channel.
Prepares a Shoutout Voldemort struct with information needed to compose a shoutout.
Deletes a message, or all messages in a channel.
Ends a Twitch poll, putting it in either a "TERMINATED" or "ARCHIVED" state.
Fetches a list of known (online) bots from TwitchInsights.net.
Returns a broadcaster-level "Bearer" authorisation token for a channel, where such exist.
Fetches information about a channel; its title, what game is being played, the channel tags, etc.
Get the JSON representation of everyone currently in a broadcaster's channel.
Fetches a list of all followers of the passed channel and caches them in the channel's entry in TwitchPlugin.rooms.
By following a passed URL, queries Twitch servers for an array of entities (such as users or channels).
Fetches information about polls in the specified channel. If an ID string is supplied, it will be included in the query, otherwise all "ACTIVE" polls are included in the returned JSON.
Fetches information about an ongoing stream.
Fetches a list of all subscribers of the specified channel. A broadcaster-level access token is required.
By following a passed URL, queries Twitch servers for an entity (user or channel).
Fetches information about a game; its numerical ID and full name.
Fetches information about a Twitch user and returns it in the form of a Voldemort struct with nickname, display name and account ID members.
Validates an access key, retrieving information about it.
Handles exceptions thrown by retryDelegate.
Modifies a channel's title or currently played game. Implementation function.
Persistent worker issuing Twitch API queries based on the concurrency messages sent to it.
Prints out details about exceptions passed from retryDelegate. retryDelegate itself rethrows them when we return, so no need to do that here.
Retries a passed delegate until it no longer throws or until the hardcoded number of retries (TwitchPlugin.delegateRetries) is reached, or forever if endlessly is passed.
Wraps sendHTTPRequestImpl by proxying calls to it via the persistentQuerier subthread.
Sends a HTTP request of the passed verb to the passed URL, and returns the response.
Sends a whisper to a user.
Changes the currently streamed game of a channel.
Changes the title of a channel.
Starts a commercial in the specified channel.
Times out a user in a channel.
Common code to wait for a query response.
Embodies a response from a query to the Twitch servers. A string paired with a millisecond count of how long the query took, and some metadata about the request.
Represents a Twitch native poll (not a poll of the Poll plugin).
Functions for accessing the Twitch API. For internal use.