feat(bot):

This commit is contained in:
Nyeki.py
2024-10-17 01:11:37 -03:00
parent 5011ab5f90
commit c745df0a9d
19 changed files with 1273 additions and 439 deletions
+28
View File
@@ -0,0 +1,28 @@
#!/bin/sh
# Check for updates.
git pull
# Create the enviroment file.
if [ ! -f ".env" ]; then
# If the destination file doesn't exist, copy the source file to the destination
cp ".env.example" ".env"
if [ -z "$EDITOR" ]; then
EDITOR="nano"
fi
$EDITOR .env
else
echo ".env file already exists. Make sure to check for updates in the .env.example file."
fi
# Build image and create the container.
docker compose down
docker compose build
docker compose up -d
echo "Everything's set up and running!"
echo "You can stop the bot running 'docker compose down'."