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 diff --git a/README.md b/README.md index ed5ea43..979ddd8 100644 --- a/README.md +++ b/README.md @@ -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!** + +kdh8219 diff --git a/src/choose_sentence.py b/src/choose_sentence.py index 99a2380..32c35d1 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}"]