Allow disabling modules in environment variables
This commit is contained in:
parent
ce2d7684bc
commit
ebaf8c765d
15
monolith.py
15
monolith.py
|
@ -21,14 +21,17 @@ if not token:
|
||||||
|
|
||||||
|
|
||||||
async def main(loop):
|
async def main(loop):
|
||||||
ingest = Ingest()
|
if "ingest" in modules_enabled:
|
||||||
loop.create_task(ingest.run())
|
ingest = Ingest()
|
||||||
|
loop.create_task(ingest.run())
|
||||||
|
|
||||||
client = DiscordClient()
|
if "dis" in modules_enabled:
|
||||||
loop.create_task(client.start(token))
|
client = DiscordClient()
|
||||||
|
loop.create_task(client.start(token))
|
||||||
|
|
||||||
chan = Chan4()
|
if "ch4" in modules_enabled:
|
||||||
loop.create_task(chan.run())
|
chan = Chan4()
|
||||||
|
loop.create_task(chan.run())
|
||||||
|
|
||||||
|
|
||||||
loop = asyncio.get_event_loop()
|
loop = asyncio.get_event_loop()
|
||||||
|
|
Loading…
Reference in New Issue