LINE's automatic bot that tells you the departure time of the train from Ootagawa Station (my local station)
2021/04/04(Sun) 〜 2021/04/05(Mon)
derectoryName | Explanation |
---|---|
img | The image of Ootagawa Station, which is the icon of the line, is stored. |
line | Contains the SDK that creates the outline of the automatic bot. |
app.py | It is a Py code that describes the timetable of the main train and the sentences to be sent. |
station.py | This is the Py code I wrote for debug. It doesn't matter if you don't have it. |
git clone https://github.com/ryusuke920/OotagawaStationLineBot.git
Enter.
./ngrok http 5000
You can get the http and https URLs corresponding to localhost by typing.
Copy this URL into the Webhook URL in the LINE Developers Webhook settings.
At this time, if you are not https, it will be invalidated, so be careful.
At the terminal,
flask run
Enter to complete.
If you go to the LINE Bot screen and send the station name and time, the time based on it will be returned automatically.