From a3914ba6075b9d04c79583f11a320f885fbb5c1e Mon Sep 17 00:00:00 2001 From: sunwoo1524 Date: Fri, 8 Dec 2023 23:50:45 +0900 Subject: [PATCH 1/4] edit README.md --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ea7102c..8bc0eb5 100644 --- a/README.md +++ b/README.md @@ -27,11 +27,10 @@ cp .example.env .env # edit setting file vim .env -5. RUN ``` +5. RUN +``` python main.py ``` - -``` From f0cb0687cc8606f62b326e2a47c82e7b3cd45cb6 Mon Sep 17 00:00:00 2001 From: sunwoo1524 Date: Sat, 9 Dec 2023 00:00:30 +0900 Subject: [PATCH 2/4] fix a bug --- src/choose_sentence.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/choose_sentence.py b/src/choose_sentence.py index 742b9fb..9c0c4ce 100644 --- a/src/choose_sentence.py +++ b/src/choose_sentence.py @@ -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}"] From c76529c8b8cbeacd4db44a38d4dd1cfdeb66c700 Mon Sep 17 00:00:00 2001 From: sunwoo1524 Date: Sat, 9 Dec 2023 00:04:22 +0900 Subject: [PATCH 3/4] add a comment of .example.env --- .example.env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.example.env b/.example.env index 3790951..f12b746 100644 --- a/.example.env +++ b/.example.env @@ -1,4 +1,4 @@ MISSKEY_INSTANCE_ADDRESS="worldc.one" MISSKEY_ACCESS_TOKEN="BWbGlK6lWuUgXQpFM7igtmbZ30g6BOIc" # it is just a sample -SENTENCES_FILE="./data/sentences.txt" \ No newline at end of file +SENTENCES_FILE="./data/sentences.txt" # Putting an absolute path is recommended \ No newline at end of file From ab92bab25f761cddbb065eee5c1b6bf865774e57 Mon Sep 17 00:00:00 2001 From: sunwoo1524 Date: Sat, 9 Dec 2023 00:22:57 +0900 Subject: [PATCH 4/4] thank you, contributors --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8bc0eb5..cf82ef3 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ ## How to run manually 1. clone repo + 2. make venv ``` @@ -26,11 +27,17 @@ cp .example.env .env # edit setting file vim .env - ``` 5. RUN ``` python main.py - ``` + +# Contribute +To contribute to this project is free! + +## Contributors +**Thank you for your contribution!** + +kdh8219