Start on supporting checking for online status of Twitch Teams #5972
No reviewers
Labels
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Mrcoolgamer11/Red-DiscordBot!5972
Loading…
Reference in a new issue
No description provided.
Delete branch "palmtree5/V3/enhancement/streams_twitchteams"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description of the changes
Adds support for checking the online status of a Twitch Team (more specifically: it will display the team's info and generate online stream embeds for members of the team that are online, while NOT displaying the offline members). Resolves #2157 and I went with the option of minimizing the number of requests being made to Twitch's API (i.e. one request to get the team data, one request for every 100 team members' user data, one request for every 100 team members' stream data (which offline users do not show up in), and one request per user for their current follower count). This also makes a few changes to other classes, including implementing a
TwitchMetaclass, which is a subclass ofStream, but which hasTwitchStreamandTwitchTeamas subclasses (this is mainly to just put the handling of API calls for Twitch in one place), and changingmake_embedinTwitchStreamto be astaticmethodas it is the format I wanted for the online user embeds.Note that the actual Discord command has not been written yet, but that's ultimately the easier part. I also need to have it generate the embed with the data for the team itself as that should be displayed every time.
Have the changes in this PR been tested?
Somewhat, as I definitely have it at the point of being able to list out online team members, but there are other pieces not written yet, hence the draft status for the moment
Yes
No
Update on this:
[p]twitchteamhas been added in and has been confirmed working. The output from that command comes in the form of two messages: one for the team info, and a reaction menu for the team members currently online.I am not sure if we want to pursue stream alerts for Twitch teams though as I am quite honestly not sure how I would want to proceed on that front
This PR should be ready to test. Will be holding off on trying to do any sort of stream alerts for Twitch Teams for the time being (I.e. that will be a separate PR if it gets written)
This PR was ported to the current codebase in
3979961c8instead of being merged as-is:Add [p]twitchteam to show which members of a Twitch team are live.
TwitchTeam now subclasses TwitchStream instead of introducing a separate base
class, and uses the current Twitch followers endpoint.