mirror of
https://github.com/AskDavis/nate-discord.git
synced 2026-01-01 05:05:58 -08:00
fixed python version; path bugs
This commit is contained in:
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@@ -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"]
|
||||||
@@ -10,7 +10,7 @@ DIALOGUE_STACK = []
|
|||||||
|
|
||||||
def load_system_directives():
|
def load_system_directives():
|
||||||
'''Load the json file containing 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)
|
system_directives = json.load(f)
|
||||||
return system_directives
|
return system_directives
|
||||||
|
|
||||||
|
|||||||
3
requirements.txt
Normal file
3
requirements.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
openai
|
||||||
|
discord
|
||||||
|
python-dotenv
|
||||||
1
run.py
1
run.py
@@ -1,4 +1,5 @@
|
|||||||
from app.discord_bot.connect_discord import client, discord_token
|
from app.discord_bot.connect_discord import client, discord_token
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
print("Starting Discord Bot")
|
||||||
client.run(discord_token)
|
client.run(discord_token)
|
||||||
Reference in New Issue
Block a user