Added a service for the bot and changed the update script accordingly
This commit is contained in:
parent
c25e514af2
commit
2e69755e9c
|
|
@ -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
|
||||||
Loading…
Reference in New Issue
Block a user