From 3d1118a2348bd2046b0835c24da36abc2dd751e0 Mon Sep 17 00:00:00 2001 From: "Kaz Saita(raspi4)" Date: Fri, 15 Mar 2024 11:06:22 +0900 Subject: [PATCH] add service example --- README.md | 2 +- capture_bot_san.service.example | 13 +++++++++++++ capture_bot_san/token_reader.py | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 capture_bot_san.service.example diff --git a/README.md b/README.md index ba76816..e877d3a 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ $ poetry install $ poetry run python -m capture_bot_san ``` -For the 1st run(or when it detects lacking any tokens/configs required), it will prompt to gather required access tokens and configuration. Input all of them accordingly. +For the 1st run(or when it detects lacking any tokens/configs required), it will prompt to gather required access tokens and configurations. Input all of them accordingly. # Configuration diff --git a/capture_bot_san.service.example b/capture_bot_san.service.example new file mode 100644 index 0000000..5c9ccd3 --- /dev/null +++ b/capture_bot_san.service.example @@ -0,0 +1,13 @@ +[Unit] +Description = capture bot san + +[Service] +WorkingDirectory=/home/kazbo/src/capture_bot_san +ExecStart = /home/kazbo/.local/bin/poetry run python -m capture_bot_san +Restart = no +Type = simple +User = kazbo + + +[Install] +WantedBy = multi-user.target diff --git a/capture_bot_san/token_reader.py b/capture_bot_san/token_reader.py index f462da1..f9994fa 100755 --- a/capture_bot_san/token_reader.py +++ b/capture_bot_san/token_reader.py @@ -28,7 +28,7 @@ def read_tokens(): write_back = True print('Discord token not set') print('Go to https://discord.com/developers/applications/ and create it.') - print('New Application -> Bot -> Token-> Copy! or Reset Token if you have already created it.') + print('New Application -> Bot -> Token-> Copy! or Reset Token if you have already created it.') token.DISCORD_TOKEN = input('Discord Token: ').strip() if token.DROPBOX_APP_KEY == '' or token.DROPBOX_APP_SECRET == '': write_back = True