diff --git a/update.sh b/update.sh index ee8b691..309d061 100755 --- a/update.sh +++ b/update.sh @@ -1,8 +1,9 @@ #!/bin/bash sleep 5 -pkill -f 'bot.py' +systemctl stop discord-bot +sleep 5 echo 'Updating...' git pull origin master echo 'Finished. Starting bot...' -python3.10 bot.py \ No newline at end of file +systemctl start discord-bot \ No newline at end of file