mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-06 01:12:33 -05:00
Add and use Red-Commons library (#5624)
* update RC dep * welp 100% tested * fix import * 120% tested * Call _early_init even earlier Not really in scope of this PR but the original was merged before I could share any feedback. * explicitly import getLogger Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
This commit is contained in:
@@ -2,7 +2,6 @@ import asyncio
|
||||
import asyncio.subprocess # disables for # https://github.com/PyCQA/pylint/issues/1469
|
||||
import itertools
|
||||
import json
|
||||
import logging
|
||||
import pathlib
|
||||
import platform
|
||||
import re
|
||||
@@ -13,6 +12,7 @@ from typing import ClassVar, Final, List, Optional, Pattern, Tuple
|
||||
|
||||
import aiohttp
|
||||
import rich.progress
|
||||
from red_commons.logging import getLogger
|
||||
|
||||
from redbot.core import data_manager
|
||||
from redbot.core.i18n import Translator
|
||||
@@ -21,7 +21,7 @@ from .errors import LavalinkDownloadFailed
|
||||
from .utils import task_callback_exception
|
||||
|
||||
_ = Translator("Audio", pathlib.Path(__file__))
|
||||
log = logging.getLogger("red.Audio.manager")
|
||||
log = getLogger("red.Audio.manager")
|
||||
JAR_VERSION: Final[str] = "3.4.0"
|
||||
JAR_BUILD: Final[int] = 1275
|
||||
LAVALINK_DOWNLOAD_URL: Final[str] = (
|
||||
|
||||
Reference in New Issue
Block a user