Eat More is a Telegram bot that reminds you to eat more.
I am open sourcing the code to give you an idea of what it takes to build such a bot and hopefully inspire you to create your own.
I wrote these steps from memory. It's likely that I missed something. If you run into any problems please message me on Telegram and very clearly explain what's not working. What you tried. What you expected to happen. What did happen. Try this:
git clone https://github.com/marckohlbrugge/eatmore.git
Create a Telegram bot using @BotFather
Copy sample.env to .env and fill out each variable
Configure your database in
Create the database
rails telegram:bot:set_webhookto configure the webhook to communicate with Telegram. Or in development
rails telegram:bot:pollerto configure the poller.
Don't want to use S3?
I use Heroku for hosting which doesn't support file uploads so I'm using S3
instead. If you want to simplify your setup you can configure
Shrine to use your local file system instead. You can do
Want to join a community of makers?
Questions, feature requests, bugs, etc
Please open an issue if you find a bug. Pull requests with bug fixes or improvements are welcome.
The code is provided as is. Support inquiries and feature requests are likely to be ignored. Please don't create issues for these.
The code is licensed under MIT license. Images are NOT included. You cannot use the donuts illustration without getting a license from the creator. I'm not linking it here however, because I don't want everyone to start using the same image. You can also not use the Eat More logo.