mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-09 19:02:32 -05:00
Add WL dep and WL overides
This commit is contained in:
3
redbot/core/apis/audio/wavelink/__init__.py
Normal file
3
redbot/core/apis/audio/wavelink/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from . import constants as constants
|
||||
from . import events as events
|
||||
from . import overwrites as overwrites
|
||||
14
redbot/core/apis/audio/wavelink/constants.py
Normal file
14
redbot/core/apis/audio/wavelink/constants.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import typing
|
||||
|
||||
__all__ = ["REGION_AGGREGATION"]
|
||||
|
||||
REGION_AGGREGATION: typing.Dict[str, str] = {
|
||||
"dubai": "singapore",
|
||||
"amsterdam": "europe",
|
||||
"london": "europe",
|
||||
"frankfurt": "europe",
|
||||
"eu-central": "europe",
|
||||
"eu-west": "europe",
|
||||
}
|
||||
27
redbot/core/apis/audio/wavelink/events.py
Normal file
27
redbot/core/apis/audio/wavelink/events.py
Normal file
@@ -0,0 +1,27 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import typing
|
||||
|
||||
if typing.TYPE_CHECKING:
|
||||
from .overwrites import RedPlayer, RedTrack
|
||||
|
||||
|
||||
class QueueEnd:
|
||||
"""Event dispatched on QueueEnd.
|
||||
|
||||
Attributes
|
||||
------------
|
||||
player: :class:`RedPlayer`
|
||||
The player associated with the event.
|
||||
track: :class:`RedTrack`
|
||||
The track associated with the event.
|
||||
"""
|
||||
|
||||
__slots__ = ("track", "player")
|
||||
|
||||
def __init__(self, data: dict):
|
||||
self.track = data.get("track")
|
||||
self.player = data.get("player")
|
||||
|
||||
def __str__(self):
|
||||
return "QueueEnd"
|
||||
1481
redbot/core/apis/audio/wavelink/overwrites.py
Normal file
1481
redbot/core/apis/audio/wavelink/overwrites.py
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user