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.
Ends a Twitch poll, putting it in either a "TERMINATED" or "ARCHIVED" state.
Fetches 7tv emotes for a given channel.
Fetches 7tv emotes.
Fetches BetterTTV emotes for a given channel.
Fetches globalBetterTTV emotes.
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 FrankerFaceZ emotes for a given channel.
Fetches a list of all follows 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 (as string) members.
Generates a unique numerical ID for use as key in the passed associative array bucket.
Validates an access key, retrieving information about it.
Modifies a channel's title or currently played game.
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.
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.
Starts a commercial in the specified 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.
Functions for accessing the Twitch API. For internal use.