[Audio] Timeout value for "dc" setting #5350
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#5350
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?
What component of Red (cog, command, API) would you like to see improvements on?
Audio
Describe the enhancement you're suggesting.
Currently it seems like the alternatives are that the bot either stays in the channel until its empty, and then disconnects after a
emptydisconnecttime, or it disconnects immediately after the queue goes empty, with thedcsetting.I think it would make a lot of sense if you could configure a timeout for the
dcsetting, in the form of "Wait X amount of seconds before disconnecting on empty queue". This would allow you to have the bot disconnect when its done playing, but at the same time also reduce the amount of unnecessary disconnects. I often see new songs being queued directly after the current one is done, and the bot has just 1 second ago disconnected.Anything else?
No response
Hi @walliski @Flame442. I'm interested in working on this. I'd like to add a parameter that specifies how long before disconnecting (in seconds) on an empty queue with the dc setting enabled as @walliski suggests.
As the label suggests, PRs are welcome for this issue. Feel free to make one in accordance with our CONTRIBUTING.MD file. If you need any additional help, feel free to ask on the Redbot discord server.
Sounds good! May I be assigned to this in that case?
Assignment on issues really doesn't mean anything, but if it makes you feel better sure.
Erledigt in
3507e8f28. Neu:[p]audioset dcdelay <seconds>legt fest, wie lange der Bot nach Queue-Ende wartet, bevor er sich trennt (bei aktivem[p]audioset dc). Wird zwischendurch etwas eingereiht, bleibt er verbunden.Generated by Claude Code