mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 11:48:55 -05:00
Another tiny PR :awesome:
This commit is contained in:
parent
8f5118d257
commit
5692ab3228
@ -1,11 +1,20 @@
|
||||
from . import abstract as abstract
|
||||
from . import constants as constants
|
||||
from . import errors as errors
|
||||
from . import nodes
|
||||
from . import regex as regex
|
||||
from . import sql as sql
|
||||
from . import wavelink as wavelink
|
||||
from .setting_cache import SettingCacheManager as SettingCacheManager
|
||||
from . import playlists
|
||||
from ._internal.wavelink.overwrites import (
|
||||
LoadType as LoadType,
|
||||
PlayerStatus as PlayerStatus,
|
||||
RedClient as RedClient,
|
||||
RedEqualizer as RedEqualizer,
|
||||
RedNode as RedNode,
|
||||
RedPlayer as RedPlayer,
|
||||
RedTrack as RedTrack,
|
||||
RedTrackPlaylist as RedTrackPlaylist,
|
||||
Votes as Votes,
|
||||
)
|
||||
from ._internal.wavelink.events import QueueEnd as QueueEnd
|
||||
from ._internal.playlists.enums import PlaylistScope as PlaylistScope
|
||||
|
||||
from . import config
|
||||
from .config import _init as _init
|
||||
|
||||
|
||||
6
redbot/core/apis/audio/_internal/__init__.py
Normal file
6
redbot/core/apis/audio/_internal/__init__.py
Normal file
@ -0,0 +1,6 @@
|
||||
from . import nodes as nodes
|
||||
from . import setting_cache as setting_cache
|
||||
from . import playlists as playlists
|
||||
from . import sql as sql
|
||||
from . import wavelink as wavelink
|
||||
from . import abstract as abstract
|
||||
@ -4,8 +4,8 @@ import copy
|
||||
import typing
|
||||
|
||||
from .managed import managed_lavalink_connect_task_event
|
||||
from .. import constants
|
||||
from .. import config
|
||||
from redbot.core.apis.audio import constants
|
||||
from redbot.core.apis.audio import config
|
||||
|
||||
if typing.TYPE_CHECKING:
|
||||
from redbot.core.bot import Red
|
||||
@ -8,8 +8,8 @@ import wavelink
|
||||
|
||||
from redbot.core import commands
|
||||
from redbot.core.bot import Red
|
||||
from ..wavelink.events import QueueEnd
|
||||
from ..wavelink.overwrites import RedNode
|
||||
from redbot.core.apis.audio._internal.wavelink.events import QueueEnd
|
||||
from redbot.core.apis.audio._internal.wavelink import RedNode
|
||||
|
||||
log = logging.getLogger("red.core.apis.audio.nodes")
|
||||
|
||||
@ -15,7 +15,7 @@ import aiohttp
|
||||
from tqdm import tqdm
|
||||
|
||||
from redbot.core import Config
|
||||
from .. import constants, regex, errors
|
||||
from redbot.core.apis.audio import constants, regex, errors
|
||||
|
||||
__all__ = [
|
||||
"managed_lavalink_connect_task_event",
|
||||
@ -7,7 +7,7 @@ import discord
|
||||
from redbot.core import Config
|
||||
from redbot.core.bot import Red
|
||||
|
||||
from ..abstract import CacheLevel
|
||||
from redbot.core.apis.audio._internal.abstract import CacheLevel
|
||||
|
||||
|
||||
class LocalCacheLevelManager:
|
||||
@ -22,7 +22,7 @@ from discord.http import Route
|
||||
|
||||
from redbot.core import commands
|
||||
|
||||
from .. import regex, constants
|
||||
from ... import regex, constants
|
||||
from .events import QueueEnd
|
||||
|
||||
__all__ = [
|
||||
@ -5,7 +5,7 @@ from typing import TYPE_CHECKING, Optional
|
||||
from redbot.core import Config
|
||||
|
||||
from . import SettingCacheManager, constants
|
||||
from .playlists.enums import PlaylistScope
|
||||
from ._internal.playlists.enums import PlaylistScope
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from redbot.core.bot import Red
|
||||
|
||||
@ -3,7 +3,6 @@ import inspect
|
||||
import logging
|
||||
import os
|
||||
import platform
|
||||
import re
|
||||
import shutil
|
||||
import sys
|
||||
import contextlib
|
||||
@ -19,7 +18,6 @@ from typing import (
|
||||
Dict,
|
||||
NoReturn,
|
||||
Set,
|
||||
Coroutine,
|
||||
TypeVar,
|
||||
Callable,
|
||||
Awaitable,
|
||||
@ -30,7 +28,6 @@ from types import MappingProxyType
|
||||
import discord
|
||||
from discord.ext import commands as dpy_commands
|
||||
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 .cog_manager import CogManager, CogManagerUI
|
||||
@ -191,7 +188,7 @@ class RedBase(
|
||||
self._permissions_hooks: List[commands.CheckPredicate] = []
|
||||
self._red_ready = asyncio.Event()
|
||||
self._red_before_invoke_objs: Set[PreInvokeCoroutine] = set()
|
||||
from .apis.audio.wavelink.overwrites import (
|
||||
from redbot.core.apis.audio._internal.wavelink import (
|
||||
RedClient,
|
||||
) # This is needed to avoid objects not being ready
|
||||
|
||||
@ -593,7 +590,7 @@ class RedBase(
|
||||
from .apis import audio # This is needed to avoid objects not being ready
|
||||
|
||||
await audio._init(self)
|
||||
self.add_cog(audio.nodes.AudioAPIEvents(self))
|
||||
self.add_cog(redbot.core.apis.audio._internal.nodes.AudioAPIEvents(self))
|
||||
|
||||
packages = []
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user