mirror of https://codeberg.org/soteria/sox.git
refactor: move everything to an src module
This commit is contained in:
parent
5c2b1123e8
commit
fb429a12ef
|
|
@ -4,6 +4,6 @@ RUN pip install poetry
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN poetry install
|
RUN poetry install --without=dev
|
||||||
|
|
||||||
ENTRYPOINT ["poetry", "run", "python", "-u", "main.py"]
|
CMD ["poetry", "run", "python", "-m", "src"]
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
from classes.bot import MyBot
|
from src.classes.bot import MyBot
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import asyncio
|
import asyncio
|
||||||
|
|
||||||
async def main():
|
async def main():
|
||||||
bot = MyBot()
|
bot = MyBot()
|
||||||
bot.load_extensions("plugins")
|
bot.load_extensions("src/plugins")
|
||||||
await bot.start(os.environ["TOKEN"])
|
await bot.start(os.environ["TOKEN"])
|
||||||
|
|
||||||
asyncio.run(main())
|
asyncio.run(main())
|
||||||
Loading…
Reference in New Issue