Skip to content

WhatsApp Handler written in Go. Fetches the Twentemilieu Calendar and reminds group participants to bring out trash.

License

Notifications You must be signed in to change notification settings

lepasq/twentemilieu-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WhatsApp bot for Twente-Milieu

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.

Setup

git clone https://github.com/lepasq/twentemilieu-bot.git
go get -d ./...

Next, open config.yml and adapt the values accordingly.

Packages

  • api: fetches the address_id and calendar from the twente milieu
  • config: parses and creates config struct from config.yml
  • handlers: handle received messages
  • scheduler: schedules a calendar check once per day

Contribute

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

About

WhatsApp Handler written in Go. Fetches the Twentemilieu Calendar and reminds group participants to bring out trash.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages