diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7a70830 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +# This dockerfile runs the run.py python file +# which is the main file for the application + +# Use an official Python runtime as a parent image +FROM python:3.9 + +# Set the working directory to /app +WORKDIR / + +# Copy the current directory contents into the container at /app +ADD . . + +# Install any needed packages specified in requirements.txt +RUN pip install -r requirements.txt + +# Run run.py when the container launches +CMD ["python", "run.py"] diff --git a/app/mabel/connect_openai.py b/app/mabel/connect_openai.py index 1e3a06b..d09c44b 100644 --- a/app/mabel/connect_openai.py +++ b/app/mabel/connect_openai.py @@ -10,7 +10,7 @@ DIALOGUE_STACK = [] def load_system_directives(): '''Load the json file containing system directives''' - with open('app/mabel/system_directives/system_directives.json') as f: + with open('app/mabel/system-directives/system_directives.json') as f: system_directives = json.load(f) return system_directives diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..b3a9f0e --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +openai +discord +python-dotenv \ No newline at end of file diff --git a/run.py b/run.py index 51ea1d7..7e092df 100644 --- a/run.py +++ b/run.py @@ -1,4 +1,5 @@ from app.discord_bot.connect_discord import client, discord_token if __name__ == '__main__': + print("Starting Discord Bot") client.run(discord_token) \ No newline at end of file