FEAT: Added Destiny 2 Module

DOC: Changed things to ignore any __init__.py
DOC: Updated to support Destiny 2
This commit is contained in:
Dan
2024-06-25 20:06:10 -04:00
parent 8509bcc98f
commit 338752b31a
4 changed files with 242 additions and 7 deletions

View File

@@ -20,9 +20,6 @@ class Selena(discord.Client):
async def setup_hook(self):
logging.info("Setting up modules...")
if self.twitch:
logging.info("Setting up Twitch module asynchronously...")
await self.twitch.setup_hook()
self.tree.copy_global_to(guild=discord.Object(id=GUILD_ID))
await self.tree.sync(guild=discord.Object(id=GUILD_ID))
@@ -42,6 +39,11 @@ class Selena(discord.Client):
birthday = Birthday(self)
birthday.setup(self.tree)
if config['modules']['destiny2']['enabled']:
from modules.games.destiny2 import Destiny2
destiny2 = Destiny2(self)
destiny2.setup(self.tree)
bot = Selena()