From 0982582b0fa2815f14012bc562798c05916e3d8d Mon Sep 17 00:00:00 2001 From: perforat Date: Mon, 9 Mar 2026 15:02:26 +0500 Subject: [PATCH 1/5] add systemd service configuration script --- systemd_service.sh | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 systemd_service.sh diff --git a/systemd_service.sh b/systemd_service.sh new file mode 100644 index 0000000..fd2eba9 --- /dev/null +++ b/systemd_service.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +BOT_DIR="$(cd "$(dirname "$0")" && pwd)" +BOT_USER="$(whoami)" +VENV_PYTHON="$BOT_DIR/venv/bin/python" +SERVICE_NAME="muzovkantv2" + +echo "creating systemd service for user '$BOT_USER' in '$BOT_DIR'..." + +sudo tee /etc/systemd/system/$SERVICE_NAME.service > /dev/null < Date: Mon, 9 Mar 2026 15:08:46 +0500 Subject: [PATCH 2/5] add systemd service information --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index 37e7db3..a61fee2 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ ### shitty (half-)vibecoded discord bot ## overall you can use this as a base for your discord bot by writing your own [cogs](/cogs/), or as is. +keep in mind that [systemd_service.sh](systemd_service.sh) is ONLY for systemd. ## installation @@ -22,6 +23,28 @@ CAT_API_KEY=live_abc123abc ``` you can then edit the [config.py](/config.py) to your liking. +## usage +the bot is running when the main.py script is running. + +### systemd service +you can configure a systemd service for this bot. +*tested on Ubuntu 24.04* + +simply do: +``` +chmod +x systemd_service.sh +./systemd_service.sh +``` +the systemd service will now start and auto start on reboot. + +### updating with systemd service +keep in mind that after updating with the systemd service enabled, you will need to restart the service. +so the update workflow looks something like this: +``` +git pull origin main +sudo systemctl restart muzovkantv2 +``` + ## contacting if you have any feedback, contact me on github issues or/and discord. if you want to add any functions to this bot, make a PR. when submitting a bug report, make sure to attach the bot.log files. they generate automatically in root directory. -- 2.49.1 From 65077a8d2604a9dfc859809e47d7adac8ba51611 Mon Sep 17 00:00:00 2001 From: perforat Date: Mon, 9 Mar 2026 15:09:26 +0500 Subject: [PATCH 3/5] add systemd service info --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a61fee2..61f7ab2 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,8 @@ the bot is running when the main.py script is running. ### systemd service you can configure a systemd service for this bot. -*tested on Ubuntu 24.04* + +(*tested on Ubuntu 24.04*) simply do: ``` -- 2.49.1 From e48f693ced9dd08ccfba91bbb47d50fb009986ce Mon Sep 17 00:00:00 2001 From: perforat Date: Mon, 9 Mar 2026 15:11:07 +0500 Subject: [PATCH 4/5] move compatibility information --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 61f7ab2..165b4e6 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,6 @@ ### shitty (half-)vibecoded discord bot ## overall you can use this as a base for your discord bot by writing your own [cogs](/cogs/), or as is. -keep in mind that [systemd_service.sh](systemd_service.sh) is ONLY for systemd. - ## installation 1. clone the repo @@ -40,6 +38,7 @@ the systemd service will now start and auto start on reboot. ### updating with systemd service keep in mind that after updating with the systemd service enabled, you will need to restart the service. +[systemd_service.sh](systemd_service.sh) is ONLY for systemd systems. so the update workflow looks something like this: ``` git pull origin main -- 2.49.1 From 06241696f21e5ff6a1351b15d1a325efd6e41957 Mon Sep 17 00:00:00 2001 From: perforat Date: Mon, 9 Mar 2026 15:11:43 +0500 Subject: [PATCH 5/5] im genuinely blind --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 165b4e6..ccb99ad 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,7 @@ the bot is running when the main.py script is running. ### systemd service you can configure a systemd service for this bot. +[systemd_service.sh](systemd_service.sh) is ONLY for systemd systems. (*tested on Ubuntu 24.04*) @@ -38,7 +39,6 @@ the systemd service will now start and auto start on reboot. ### updating with systemd service keep in mind that after updating with the systemd service enabled, you will need to restart the service. -[systemd_service.sh](systemd_service.sh) is ONLY for systemd systems. so the update workflow looks something like this: ``` git pull origin main -- 2.49.1