This project is a Line chat bot that I created for my group chat.
To get started, you will need your own API keys from:
All API keys can be had for free (besides Lunch Money, which you should pay for!)
- Run
pip install -r requirements.txtto install dependencies (recommended to do this in a virtual environment) - Obtain API keys and place them into your file called
.env, which should look similar to the example file in this repository - In the main function of
bot.pyreplace the variable calledtest_textwith the command of your choice - Run
python bot.pyto test your command
For info on deployment, check out Line's guide on building a bot. Line recommends using Heroku, which is what this project is using.
Note that when deploying, your server will need to run the following script:
python app.py
If running on a Heroku Dyno, there is no need to modify the Procfile included in this repository.
!help- Lists all available commands and how to use them!time- Gets the current time in the Yamagata Prefecture in Japan!weather- Gets the current temperature and humidity details in Yamagata Prefecture in Japan!usdjpy [usd]- Given an amount in US dollars, gets the equivalent amount in Japanese Yen!jpyusd [jpy]- Given an amount in Japanese Yen, gets the equivalent amount in US dollars!josh- Calls Josh a random emoji 🤠!friday- Adds Friday hype video to the chat (only works on Fridays)!cl- Changelog command shows the latest 3 commits in the repository!coffeemoney- Gets the total amount of money I've spent on coffee this month ☕️