[Streams] Save a message for each streamer registered #3824

Closed
opened 2020-05-06 14:25:05 +02:00 by madebylydia · 6 comments
madebylydia commented 2020-05-06 14:25:05 +02:00 (Migrated from github.com)

Feature request

Select the type of feature you are requesting:

  • Cog
  • Command
  • API functionality

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:

  • Make a command [p]streamset message streamer <Streamer name> <Message>. It will save the message to the streamer.
    • Streamer must be already registered.
    • Command can be run by moderator.
    • Can be only used in server.
  • If this command was not executed after the streamer was created, use the default guild option (Mention or not).
# Feature request #### Select the type of feature you are requesting: - [X] Cog - [X] Command - [ ] API functionality #### 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: - Make a command `[p]streamset message streamer <Streamer name> <Message>`. It will save the message to the streamer. - Streamer must be already registered. - Command can be run by moderator. - Can be only used in server. - If this command was not executed after the streamer was created, use the default guild option (Mention or not).
Tobotimus commented 2020-05-07 12:54:50 +02:00 (Migrated from github.com)

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 @here whenever it goes live. Definitely a valid use-case, and I don't mind your design either.

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 `@here` whenever it goes live. Definitely a valid use-case, and I don't mind your design either.
KianBral commented 2020-12-02 19:00:42 +01:00 (Migrated from github.com)

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?

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?
ltzmax commented 2020-12-02 20:36:15 +01:00 (Migrated from github.com)

How would I be able to check if the streamer is already registered?

You should see those you've added in [p]streamalert list. I assume that's what you mean.

> How would I be able to check if the streamer is already registered? You should see those you've added in `[p]streamalert list`. I assume that's what you mean.
SharkyTheKing commented 2023-02-03 12:04:15 +01:00 (Migrated from github.com)

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.

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.
Jackenmen commented 2023-02-03 12:13:06 +01:00 (Migrated from github.com)

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:

  • usage of __setattr__, __delattr__, hasattr instead of regular attribute access with default values
    • somewhat related, there's no point in having streamer_info when it can be passed directly to the Stream class
  • explanation of why _("...".format(...)) should be _("...").format(...)
  • explanation of why using named fields in .format() calls is preferred to positional arguments

It 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.

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: - usage of `__setattr__`, `__delattr__`, `hasattr` instead of regular attribute access with default values - somewhat related, there's no point in having `streamer_info` when it can be passed directly to the `Stream` class - explanation of why `_("...".format(...))` should be `_("...").format(...)` - explanation of why using named fields in `.format()` calls is preferred to positional arguments It 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.
Owner

Fixed by #6483, which has been merged into V3/develop.

Fixed by #6483, which has been merged into V3/develop.
Sign in to join this conversation.
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
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot#3824
No description provided.