WhatsApp Handler written in Go.
Twente Milieu is a waste disposal company in the Twente region.
On their website, the company provides a waster calendar, accessible via an API.
This bot fetches the calendar and sends reminders to bring out trash.
git clone https://github.com/lepasq/twentemilieu-bot.git
go get -d ./...
Next, open config.yml
and adapt the values accordingly.
api
: fetches the address_id and calendar from the twente milieuconfig
: parses and creates config struct fromconfig.yml
handlers
: handle received messagesscheduler
: schedules a calendar check once per day
Feel free to contribute to this project. There are multiple things to improve, such as:
- Saving the Calendar in a file, instead of requesting it daily from the API
- Saving the AddressId in
config.yml
instead of requesting it daily from the API - Extending the handler functionality