fix: rename modules for hot reloading
This commit is contained in:
@@ -31,34 +31,34 @@ REACTIONS = {
|
|||||||
"pizza": ["🍕"],
|
"pizza": ["🍕"],
|
||||||
}
|
}
|
||||||
RELOADABLE_MODULES = [
|
RELOADABLE_MODULES = [
|
||||||
"arguments",
|
"errornocord.arguments",
|
||||||
"audio",
|
"errornocord.audio",
|
||||||
"audio.discord",
|
"errornocord.audio.discord",
|
||||||
"audio.queue",
|
"errornocord.audio.queue",
|
||||||
"audio.utils",
|
"errornocord.audio.utils",
|
||||||
"audio.youtubedl",
|
"errornocord.audio.youtubedl",
|
||||||
"commands",
|
"errornocord.commands",
|
||||||
"commands.bot",
|
"errornocord.commands.bot",
|
||||||
"commands.tools",
|
"errornocord.commands.tools",
|
||||||
"commands.utils",
|
"errornocord.commands.utils",
|
||||||
"commands.voice",
|
"errornocord.commands.voice",
|
||||||
"commands.voice.channel",
|
"errornocord.commands.voice.channel",
|
||||||
"commands.voice.playback",
|
"errornocord.commands.voice.playback",
|
||||||
"commands.voice.playing",
|
"errornocord.commands.voice.playing",
|
||||||
"commands.voice.queue",
|
"errornocord.commands.voice.queue",
|
||||||
"commands.voice.sponsorblock",
|
"errornocord.commands.voice.sponsorblock",
|
||||||
"commands.voice.utils",
|
"errornocord.commands.voice.utils",
|
||||||
"constants",
|
"errornocord.constants",
|
||||||
"core",
|
"errornocord.core",
|
||||||
"events",
|
"errornocord.events",
|
||||||
"extra",
|
"errornocord.extra",
|
||||||
"fun",
|
"errornocord.fun",
|
||||||
"sponsorblock",
|
"errornocord.sponsorblock",
|
||||||
"tasks",
|
"errornocord.tasks",
|
||||||
"utils",
|
"errornocord.utils",
|
||||||
"utils.common",
|
"errornocord.utils.common",
|
||||||
"utils.discord",
|
"errornocord.utils.discord",
|
||||||
"voice",
|
"errornocord.voice",
|
||||||
"yt_dlp",
|
"yt_dlp",
|
||||||
"yt_dlp.version",
|
"yt_dlp.version",
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -187,8 +187,8 @@ def rreload(reloaded_modules, module):
|
|||||||
|
|
||||||
def reload(*_):
|
def reload(*_):
|
||||||
reloaded_modules = set()
|
reloaded_modules = set()
|
||||||
rreload(reloaded_modules, __import__("core"))
|
rreload(reloaded_modules, __import__("errornocord.core"))
|
||||||
rreload(reloaded_modules, __import__("extra"))
|
rreload(reloaded_modules, __import__("errornocord.extra"))
|
||||||
for module in filter(
|
for module in filter(
|
||||||
lambda v: inspect.ismodule(v) and v.__name__ in RELOADABLE_MODULES,
|
lambda v: inspect.ismodule(v) and v.__name__ in RELOADABLE_MODULES,
|
||||||
globals().values(),
|
globals().values(),
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import string
|
|||||||
import disnake
|
import disnake
|
||||||
from youtube_transcript_api._api import YouTubeTranscriptApi
|
from youtube_transcript_api._api import YouTubeTranscriptApi
|
||||||
|
|
||||||
from state import client, kill, players
|
from .state import client, kill, players
|
||||||
|
|
||||||
|
|
||||||
async def transcript(
|
async def transcript(
|
||||||
|
|||||||
Reference in New Issue
Block a user