Added a service for the bot and changed the update script accordingly

This commit is contained in:
root 2022-10-20 10:37:02 +02:00
parent c25e514af2
commit 2e69755e9c

View File

@ -1,8 +1,9 @@
#!/bin/bash #!/bin/bash
sleep 5 sleep 5
pkill -f 'bot.py' systemctl stop discord-bot
sleep 5
echo 'Updating...' echo 'Updating...'
git pull origin master git pull origin master
echo 'Finished. Starting bot...' echo 'Finished. Starting bot...'
python3.10 bot.py systemctl start discord-bot