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 . .
|
||||
|
||||
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 asyncio
|
||||
|
||||
async def main():
|
||||
bot = MyBot()
|
||||
bot.load_extensions("plugins")
|
||||
bot.load_extensions("src/plugins")
|
||||
await bot.start(os.environ["TOKEN"])
|
||||
|
||||
asyncio.run(main())
|
||||
Loading…
Reference in New Issue