diff --git a/restart.sh b/restart.sh new file mode 100644 index 0000000..a4a34ea --- /dev/null +++ b/restart.sh @@ -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