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