[Streams] Save a message for each streamer registered #3824
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 milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Mrcoolgamer11/Red-DiscordBot#3824
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Feature request
Select the type of feature you are requesting:
Describe your requested feature
This is an improvement idea for the Streams cog:
Save a message for each streamer we record, but keep the mention/no mention system for the "default" message:
[p]streamset message streamer <Streamer name> <Message>. It will save the message to the streamer.I like this idea, and it's actually something we use at the R6 ANZ Discord, except we just hard-code the channel we want to have a custom mention for :D In R6 ANZ we make the official Twitch channel for the organization mention
@herewhenever it goes live. Definitely a valid use-case, and I don't mind your design either.How would I be able to check if the streamer is already registered?
Also, is the
@commands.guild_only()decorator okay to use for this command/function?You should see those you've added in
[p]streamalert list. I assume that's what you mean.Any possible updates on this? Was looking into if this was something that was already being talked about/worked on and saw this issue, so figured to leave a comment.
It seems that there's an open PR for this. The best way to move this forward would be for an interested contributor to make a code review of it and explain in more detail some of the issues with its style such as:
__setattr__,__delattr__,hasattrinstead of regular attribute access with default valuesstreamer_infowhen it can be passed directly to theStreamclass_("...".format(...))should be_("...").format(...).format()calls is preferred to positional argumentsIt might also be worth first asking the author whether they're still even interested in pursuing this PR as if not, it could simply be closed and another one made.
Fixed by #6483, which has been merged into V3/develop.