From 2e69755e9c844e3cde88d98a47e00ee50f5521e0 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 20 Oct 2022 10:37:02 +0200 Subject: [PATCH] Added a service for the bot and changed the update script accordingly --- update.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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