Add WL dep and WL overides

This commit is contained in:
Drapersniper
2020-06-22 21:23:57 +01:00
parent 7e5009345c
commit 2e4fd67f87
10 changed files with 1605 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
from . import constants as constants
from . import events as events
from . import overwrites as overwrites

View 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",
}

View 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"

File diff suppressed because it is too large Load Diff