[Audio] Better error handling after multiple subsequential errors #3165

Closed
Drapersniper wants to merge 21 commits from f-yu-tube into V3/develop
Drapersniper commented 2019-12-03 21:21:02 +01:00 (Migrated from github.com)

Type

  • Bugfix
  • Enhancement
  • New feature

Description of the changes

Auto disconnects the player if there are more than 5 errors in the last 10 seconds. (Likely caused by ... YouTube or playing local album with broken tracks etc)

Benefit of this is to reduce message spam caused by the bot when letting them know the playback broke

Also while at it fixed 1 bug where the DJ command was crashing

### Type - [X] Bugfix - [X] Enhancement - [ ] New feature ### Description of the changes Auto disconnects the player if there are more than 5 errors in the last 10 seconds. (Likely caused by ... YouTube or playing local album with broken tracks etc) Benefit of this is to reduce message spam caused by the bot when letting them know the playback broke Also while at it fixed 1 bug where the DJ command was crashing
Twentysix26 (Migrated from github.com) reviewed 2019-12-03 21:21:02 +01:00
PredaaA (Migrated from github.com) reviewed 2019-12-04 16:31:20 +01:00
PredaaA (Migrated from github.com) left a comment
No description provided.
I tested this PR and works as intended.
mikeshardmind (Migrated from github.com) reviewed 2019-12-20 08:01:13 +01:00
mikeshardmind commented 2019-12-20 08:02:39 +01:00 (Migrated from github.com)

Needs conflict resolution.

Needs conflict resolution.
Drapersniper commented 2019-12-20 09:15:12 +01:00 (Migrated from github.com)

Conflicts resolved

Conflicts resolved
mikeshardmind (Migrated from github.com) reviewed 2019-12-20 16:23:08 +01:00
@ -122,7 +122,6 @@ class Audio(commands.Cog):
status=False,
mikeshardmind (Migrated from github.com) commented 2019-12-20 16:23:07 +01:00

What is this value being used for right now?

If it is or has been used for migrating data, this is not a correct change and will break anyone upgrading from the 3.0.0 -> 3.2.0 as the default here should be the lowest version, with migrations setting the version related to their migration.

What is this value being used for right now? If it is or has been used for migrating data, this is not a correct change and will break anyone upgrading from the 3.0.0 -> 3.2.0 as the default here should be the lowest version, with migrations setting the version related to their migration.
Drapersniper (Migrated from github.com) reviewed 2019-12-20 16:31:04 +01:00
@ -122,7 +122,6 @@ class Audio(commands.Cog):
status=False,
Drapersniper (Migrated from github.com) commented 2019-12-20 16:31:04 +01:00

afaik this is not currently used for anything ... but @aikaterna should be able to confirm it already existed before I touched audio..

afaik this is not currently used for anything ... but @aikaterna should be able to confirm it already existed before I touched audio..
Drapersniper commented 2019-12-21 20:09:26 +01:00 (Migrated from github.com)

Do not merge this one ... Merge #3205

Do not merge this one ... Merge #3205
Drapersniper (Migrated from github.com) reviewed 2019-12-22 14:17:17 +01:00
@ -122,7 +122,6 @@ class Audio(commands.Cog):
status=False,
Drapersniper (Migrated from github.com) commented 2019-12-22 14:17:16 +01:00

This is unused anywhere within red ... I've remove this default

This is unused anywhere within red ... I've remove this default
Drapersniper commented 2019-12-22 16:40:50 +01:00 (Migrated from github.com)

Will setup a CPR for all of this so itsd easier to follow ... less likely to fuck up)

Will setup a CPR for all of this so itsd easier to follow ... less likely to fuck up)

Pull request closed

Sign in to join this conversation.
No reviewers
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
1 participant
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!3165
No description provided.