-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6cc8348
commit f8b1f91
Showing
17 changed files
with
86 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Versions | ||
VERSION_API=v1.7 | ||
VERSION_BOT=v1.7 | ||
|
||
# Discord Token and Webhook | ||
DISCORD_TOKEN=Your Bot Token here | ||
WEBHOOK_URL="https://discord.com/api/webhooks/YOUR WebHook URL Here" | ||
|
||
# Discord Roles | ||
DISCORD_ROLE_OWNER=123456789 | ||
DISCORD_ROLE_COMMENTSRW=123456789 | ||
|
||
# Images | ||
ICON_LOGO="https://cdn.discordapp.com/attachments/992324600182620230/997055897371148298/comment.png" | ||
ICON_CROSS="https://cdn.discordapp.com/attachments/992324600182620230/994861540442394644/cross.png" | ||
|
||
# Database Auth | ||
MYSQL_DB_USER=DB User with Write Privileges here | ||
MYSQL_DB_PSWD=Password here | ||
ENC_PSWD=Encryption Password here, recommended to be very long and complex | ||
|
||
# Databases | ||
DB_COMMENTS_PUBLIC=ViVeTool_GUI | ||
DB_COMMENTS_API=ViVeTool_GUI_API | ||
|
||
# Ports | ||
API_PORT=60145 | ||
API_PORT_ALT=443 | ||
|
||
# Log File | ||
LOG_FILE=/app/bot.log |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM python:3.10.15 | ||
|
||
WORKDIR /app | ||
|
||
RUN pip install --no-cache-dir mysql-connector-python python-dotenv Flask Flask-RESTful waitress requests pycryptodome | ||
|
||
ADD lib /app/lib | ||
COPY ./api . | ||
|
||
CMD [ "python", "./vivetool_api.py" ] |
File renamed without changes.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM python:3.10.15 | ||
|
||
WORKDIR /app | ||
|
||
RUN pip install --no-cache-dir mysql-connector-python python-dotenv py-cord[speed] table2ascii pycryptodome | ||
|
||
ADD lib /app/lib | ||
COPY ./bot . | ||
|
||
CMD [ "python", "./vivetool_bot.py" ] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
services: | ||
discord-bot: | ||
build: | ||
dockerfile: ./bot/Dockerfile-bot | ||
context: . | ||
stdin_open: true | ||
tty: true | ||
env_file: ./bot/bot.env | ||
network_mode: host | ||
restart: always | ||
volumes: | ||
- type: bind | ||
source: ./bot.log | ||
target: /app/bot.log | ||
|
||
api: | ||
ports: | ||
- 60145:60145 | ||
build: | ||
dockerfile: ./api/Dockerfile-api | ||
context: . | ||
stdin_open: true | ||
tty: true | ||
env_file: ./api/api.env | ||
restart: always | ||
volumes: | ||
- type: bind | ||
source: ./api.log | ||
target: /app/api.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Dummy File for Python to recognize this Folder as a Python Module |
File renamed without changes.