move modules to mods/
This commit is contained in:
parent
35eeaa1154
commit
621aeee7a0
4
main.py
4
main.py
|
@ -19,6 +19,8 @@
|
||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
from importlib import import_module as mod_include
|
from importlib import import_module as mod_include
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
from irctokens import build, Line
|
from irctokens import build, Line
|
||||||
from ircrobots import Bot as BaseBot
|
from ircrobots import Bot as BaseBot
|
||||||
|
@ -92,4 +94,6 @@ async def main():
|
||||||
await bot.run()
|
await bot.run()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
os.chdir("mods")
|
||||||
|
sys.path.append(os.getcwd())
|
||||||
asyncio.run(main())
|
asyncio.run(main())
|
||||||
|
|
Loading…
Reference in New Issue