REF: Better Layout of Modules
FEAT: Added Code Needed to do Twitch
This commit is contained in:
7
main.py
7
main.py
@ -8,12 +8,11 @@ class Selena(discord.Client):
|
||||
self.tree = discord.app_commands.CommandTree(self)
|
||||
|
||||
async def setup_hook(self):
|
||||
guild = discord.Object(id=config.DISCORD_GUILD_ID)
|
||||
modules = ["modules.spotify_module", "modules.plex_module"]
|
||||
modules = ["modules.media.spotify_module",
|
||||
"modules.media.plex_module"]
|
||||
for module in modules:
|
||||
await self.load_extension(module)
|
||||
# self.tree.copy_global_to(guild=guild)
|
||||
await self.tree.sync(guild=guild)
|
||||
await self.tree.sync()
|
||||
|
||||
async def load_extension(self, name):
|
||||
module = __import__(name, fromlist=["setup"])
|
||||
|
Reference in New Issue
Block a user