KEriks 65cf45e600 Granularity
changes

Loop fixers
2021-08-31 17:37:37 +03:00

19 lines
338 B
Bash
Executable File

#!/bin/bash
D=test "$1" = "docker"
if test !$D ; then
source venv/bin/activate
fi
echo "Checking queries..."
python -m unittest
echo "Starting Discord bot..."
if test !$D ; then
export $(sed ':a;N;$!ba;s/\n/ /g' .env)
python dbot/discord_bot.py
disown -h %1
sleep 10
else
/usr/local/bin/python /app/main.py
fi
echo "Done!"