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

@@ -33,6 +33,7 @@ from discord.ext.commands import when_mentioned_or
from discord.ext.commands.bot import BotBase
from . import Config, i18n, commands, errors, drivers, modlog, bank
from .apis.audio.wavelink.overwrites import RedClient
from .cog_manager import CogManager, CogManagerUI
from .core_commands import license_info_command, Core
from .data_manager import cog_data_path
@@ -191,6 +192,7 @@ class RedBase(
self._permissions_hooks: List[commands.CheckPredicate] = []
self._red_ready = asyncio.Event()
self._red_before_invoke_objs: Set[PreInvokeCoroutine] = set()
self.wavelink = RedClient(bot=self)
def get_command(self, name: str) -> Optional[commands.Command]:
com = super().get_command(name)