Add restarter

Took 2 minutes
This commit is contained in:
Tobias Hopp 2021-03-15 10:57:44 +01:00
parent 3109c44416
commit 5e8f1b27e6

8
restart.sh Normal file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
cd /home/tobiash/Woam-Antispam-Bot/ || exit
tmux kill-session -t WoamBot
git pull --quiet
tmux new-session -d -s WoamBot
tmux send-keys -t WoamBot:0 "cd /home/tobiash/Woam-Antispam-Bot/ && clear && node bot.js" C-m