diff --git a/discord-bot/README.md b/discord-bot/README.md index 1ff47c31..d78bcecc 100644 --- a/discord-bot/README.md +++ b/discord-bot/README.md @@ -12,9 +12,17 @@ If you are unfamiliar with `hikari`, `lightbulb`, or `miru`, please refer to the ### Setup -To run the bot +To run the bot: + +Install dependency module `oasst-shared` ```bash +cd oasst-shared +pip install -e . +``` + +```bash +cd ../discord-bot cp .env.example .env python -V # 3.10 diff --git a/docker/Dockerfile.discord-bot b/docker/Dockerfile.discord-bot index 13ae308a..09e65fb8 100644 --- a/docker/Dockerfile.discord-bot +++ b/docker/Dockerfile.discord-bot @@ -1,7 +1,7 @@ FROM python:3.10-slim-bullseye RUN mkdir /app -COPY ./discord-bot/requirements.txt /requirements.txt -RUN pip install -r requirements.txt WORKDIR /app COPY ./discord-bot /app -CMD ["python", "bot.py"] +COPY ./oasst-shared/oasst_shared /app/oasst_shared +RUN pip install -r requirements.txt +CMD ["python","-m","bot"]