Merge branch 'main' into feature/dockerize

This commit is contained in:
kdh8219 2023-12-09 01:37:03 +09:00
commit 401d2a41a1
Signed by: kdh8219
GPG key ID: 9B901BE907D1862E
3 changed files with 14 additions and 2 deletions

View file

@ -1,4 +1,4 @@
MISSKEY_INSTANCE_ADDRESS="worldc.one"
MISSKEY_ACCESS_TOKEN="BWbGlK6lWuUgXQpFM7igtmbZ30g6BOIc" # it is just a sample
SENTENCES_FILE="./data/sentences.txt"
SENTENCES_FILE="./data/sentences.txt" # Putting an absolute path is recommended

View file

@ -24,6 +24,7 @@ docker compose run app
## How to run manually
1. clone repo
2. make venv
```
@ -52,3 +53,13 @@ vim .env
```
python main.py
```
# Contribute
To contribute to this project is free!
## Contributors
**Thank you for your contribution!**
<a class="contributor" href="https://codeberg.org/kdh8219"><img src="https://codeberg.org/avatars/6529ee7f1f363a06741ed8851c08e94b77d27e83003d1a58f59e1e936087728c?size=512" alt="kdh8219" width="70" style="border-radius: 50%"></a>

View file

@ -8,7 +8,8 @@ load_dotenv()
try:
with open(os.environ["SENTENCES_FILE"], "r") as f:
_sentences = f.readlines()
_sentences: str = f.readlines()
_sentences = _sentences.replace("\\n", "\n")
except:
e = sys.exc_info()[1]
_sentences = [f"에러발생(진짜임): {e}"]