#!/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 index.js" C-m
