adjust deploy for custom bots

cachapa
Captain Arepa 1 year ago
parent fc1a389b12
commit b5de354345

@ -2,6 +2,7 @@
USER=$1 # your ssh user
HOST=$2 # your server host
DIR=$3 # the directory where the bot files will go name it as you wish
BOT=$4 # the bot name
echo "Target directory: ${DIR}"
sleep 1
@ -13,7 +14,8 @@ echo "Copying files..."
mkdir "${DIR}"
#cp -r venv/ ./"${DIR}"
#cp markov.json roboduck.db roboduck.py update.py rdbot.py bot.cfg requirements.txt run.sh ./"${DIR}"
cp roboduck.py update.py rdbot.py bot.cfg requirements.txt run.sh ./"${DIR}"
cp roboduck.py update.py rdbot.py requirements.txt run.sh bot-"${BOT}".cfg ./"${DIR}"
mv ./"${DIR}"/bot-"${BOT}".cfg ./"${DIR}"/bot.cfg
# Uncomment this to run tests
# rsync -avz --dry-run live/ ${USER}@${HOST}:~/${DIR}

Loading…
Cancel
Save