FIX: Made a whoops with the enabling of the module for updates
This commit is contained in:
parent
7909594da8
commit
8e125c9758
15
main.py
15
main.py
@ -1,4 +1,3 @@
|
|||||||
# main.py
|
|
||||||
import discord
|
import discord
|
||||||
from config import config
|
from config import config
|
||||||
import logging
|
import logging
|
||||||
@ -16,6 +15,7 @@ class Selena(discord.Client):
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__(intents=intents)
|
super().__init__(intents=intents)
|
||||||
self.tree = discord.app_commands.CommandTree(self)
|
self.tree = discord.app_commands.CommandTree(self)
|
||||||
|
self.twitch = None
|
||||||
self.load_modules()
|
self.load_modules()
|
||||||
|
|
||||||
async def setup_hook(self):
|
async def setup_hook(self):
|
||||||
@ -61,18 +61,15 @@ class Selena(discord.Client):
|
|||||||
|
|
||||||
if config['modules']['update']['enabled']:
|
if config['modules']['update']['enabled']:
|
||||||
from modules.admin.update import setup as update_setup
|
from modules.admin.update import setup as update_setup
|
||||||
update_setup = update_setup(self)
|
|
||||||
update_setup(self.tree)
|
update_setup(self.tree)
|
||||||
|
|
||||||
if config['modules']['data_privacy']['enabled']:
|
if config['modules']['data_privacy']['enabled']:
|
||||||
from modules.admin.data_privacy import DataPrivacy
|
from modules.admin.data_privacy import setup as data_privacy_setup
|
||||||
data_privacy = DataPrivacy(self)
|
data_privacy_setup(self.tree)
|
||||||
data_privacy.setup(self.tree)
|
|
||||||
|
|
||||||
if config['modules']['terms_privacy']['enabled']:
|
if config['modules']['term_privacy']['enabled']:
|
||||||
from modules.admin.terms_privacy import TermsPrivacy
|
from modules.admin.term_privacy import setup as term_privacy_setup
|
||||||
terms_privacy = TermsPrivacy(self)
|
term_privacy_setup(self.tree)
|
||||||
terms_privacy.setup(self.tree)
|
|
||||||
|
|
||||||
|
|
||||||
bot = Selena()
|
bot = Selena()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user