Skip to content

Commit 38c5fa0

Browse files
Add home route
1 parent c19a219 commit 38c5fa0

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

README.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Import the ChatGPT bot to Line and start interacting with it by simply typing te
6767
3. CronJob scheduled request sending:
6868
1. Register/Login to [cron-job.org](https://cron-job.org/en/)
6969
2. In the upper right corner of the panel, select `CREATE CRONJOB`
70-
3. Enter `ChatGPT-Discord-Bot` in the Title field, and enter the URL from the previous step, for example: `https://ChatGPT-Line-Bot.explainthis.repl.co/`
70+
3. Enter `ChatGPT-Line-Bot` in the Title field, and enter the URL from the previous step, for example: `https://ChatGPT-Line-Bot.explainthis.repl.co/`
7171
4. Send a request every `5 minutes` below
7272
5. Click on `CREATE`
7373

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
3. CronJob 定時發送請求
6868
1. 註冊/登入 [cron-job.org](https://cron-job.org/en/)
6969
2. 進入後面板右上方選擇 `CREATE CRONJOB`
70-
3. `Title` 輸入 `ChatGPT-Discord-Bot`,網址輸入上一步驟的網址,例如:`https://ChatGPT-Line-Bot.explainthis.repl.co/`
70+
3. `Title` 輸入 `ChatGPT-Line-Bot`,網址輸入上一步驟的網址,例如:`https://ChatGPT-Line-Bot.explainthis.repl.co/`
7171
4. 下方則每 `5 分鐘` 打一次
7272
5. 按下 `CREATE`
7373

main.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,10 @@ def handle_text_message(event):
6363
)
6464

6565

66+
@app.route("/", methods=['GET'])
67+
def home():
68+
return 'Hello World'
69+
70+
6671
if __name__ == "__main__":
6772
app.run(host='0.0.0.0', port=8080)

0 commit comments

Comments
 (0)