Skip to content

Commit 0b6593b

Browse files
committed
- Fixed Docker image build -
Re-added `library.py` file Dockerfile now copies `library.py` to `/app/botconf/library.py`
1 parent 523df6e commit 0b6593b

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ FROM python:3.10.8
55
ADD requirements.txt /app/requirements.txt
66

77
# Add the default `library` module
8-
ADD library.py /app/library.py
8+
ADD library.py /app/botconf/library.py
99

1010
# Install requirements
1111
RUN pip install -r /app/requirements.txt
@@ -16,4 +16,4 @@ ADD botScript.py /app/botScript.py
1616
# Run the script when the container starts
1717
ENTRYPOINT ["python"]
1818

19-
CMD ["/app/botScript.py"]
19+
CMD ["/app/botScript.py"]

library.py

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# The default library for the docker image. It will be overwritten by any library file the user might define
2+
import discord
3+
from configparser import ConfigParser
4+
5+
# Echo back to the user what they said.
6+
def command_echo(params: str, message: discord.Message, client: discord.Client, config: ConfigParser):
7+
if params == '':
8+
return None
9+
else:
10+
return params

0 commit comments

Comments
 (0)