Fix crash in [p]audiostats by using the new connected_at attr #5046

Merged
Drapersniper merged 4 commits from audio_rll_081_pt2 into V3/develop 2021-05-19 17:56:53 +02:00
Drapersniper commented 2021-05-17 10:39:51 +02:00 (Migrated from github.com)

This PR depends on bump from Part 1 + the new Player.guild attribute

  • [player.store] channel -> notify_channel
  • [player.store] removed guild
  • [player.store] removed connect
  • changes in [p]audiostats

Co-authored-by: alec 50505980+aleclol@users.noreply.github.com

What to test:

  • [p]audiostats shows the correct join time.
  • [p]audiostats doesn't crash
  • [p]audiostats show the correct join time for a player that that wasnt created by audio (sfx cog/eval)
This PR depends on bump from Part 1 + the new `Player.guild` attribute - [player.store] channel -> notify_channel - [player.store] removed guild - [player.store] removed connect - changes in [p]audiostats Co-authored-by: alec <50505980+aleclol@users.noreply.github.com> What to test: - `[p]audiostats` shows the correct join time. - `[p]audiostats` doesn't crash - `[p]audiostats` show the correct join time for a player that that wasnt created by audio (sfx cog/eval)
aikaterna (Migrated from github.com) reviewed 2021-05-17 10:39:51 +02:00
aikaterna commented 2021-05-17 20:08:01 +02:00 (Migrated from github.com)

Making a note here to refer to the changes for the notify channel player.store key that is present in #4960 so it doesn't get forgotten about.

Making a note here to refer to the changes for the notify channel player.store key that is present in #4960 so it doesn't get forgotten about.
Jackenmen (Migrated from github.com) reviewed 2021-05-19 17:45:46 +02:00
@ -59,7 +65,7 @@ class MiscellaneousCommands(MixinMeta, metaclass=CompositeMetaClass):
current_title = await self.get_track_description(
p.current, self.local_folder_current_path
Jackenmen (Migrated from github.com) commented 2021-05-19 17:45:45 +02:00

Perhaps we could put a default here in case not a full second passed yet?

            ) or "0s"

image

Optional cause it's not something that this PR causes.

Perhaps we could put a default here in case not a full second passed yet? ```suggestion ) or "0s" ``` ![image](https://user-images.githubusercontent.com/6032823/118842903-dd8ee980-b8c9-11eb-9bbc-53a708400df7.png) Optional cause it's not something that this PR causes.
Drapersniper (Migrated from github.com) reviewed 2021-05-19 17:47:43 +02:00
@ -59,7 +65,7 @@ class MiscellaneousCommands(MixinMeta, metaclass=CompositeMetaClass):
current_title = await self.get_track_description(
p.current, self.local_folder_current_path
Drapersniper (Migrated from github.com) commented 2021-05-19 17:47:43 +02:00

:aha: how fast did you run the command lmfao

:aha: how fast did you run the command lmfao
Jackenmen (Migrated from github.com) reviewed 2021-05-19 17:49:40 +02:00
Jackenmen (Migrated from github.com) left a comment
No description provided.
> how fast did you run the command lmfao *fast* ![](https://i.fluffy.cc/qHzfcB6BZ9ZD7K3wFknqLsrHqsq56bPM.gif)
Jackenmen (Migrated from github.com) approved these changes 2021-05-19 17:54:16 +02:00
Jackenmen (Migrated from github.com) left a comment

Seems like I approved too fast as well...

Seems like I approved *too fast* as well...
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
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!5046
No description provided.