Skip to content
/ waylett Public

jabber bot to prase and notify on (relative) dates and times. Events get stored in a caldav calendar.

Notifications You must be signed in to change notification settings

koma5/waylett

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WAYLETT

This node bot called waylett listens to it's master on jabber. It uses chrono (natural language processing) for parsing dates and add's these dates to a caldav calendar. It retrieves these events form the same calendar and schedules them for notification on the same channel (jabber).

Example usage: in 123 years plant a tree..

Upcoming events (24 hours) can be listed with the list command.

secrets

Store these environment variables in the file .env

export USER=username
export PASSWORD=passowrd
# example here nextcloud caldav url (! trailing '/')
export CALENDARURL=https://example.org/remote.php/dav/calendars/username/waylett/

# Jabber ID of the one who's controlling the bot. It won't listen to anybody else
export [email protected]
export [email protected]
export JABBERPASSWORD=password
export JABBERSERVER=jabber.example.org

# your time zone; unfortunately there is no timestamp/timezone in xmpp messages.
export WAYLETTTIMEZONE="Europe/London"

install

git clone https://github.com/koma5/waylett && cd waylett
npm install

# or run it as docker container
docker build -t waylett .

run

npm start

# or run the docker image from above ^.

docker run --restart always -d waylett

attribution

To the the guy and his obelisk, who lies buried outside my window, in Kensal Green Cemetery for 123 years.

to do (maybe)

  • maybe ... overlap schedule by about 30 seconds
  • key schedules with id

About

jabber bot to prase and notify on (relative) dates and times. Events get stored in a caldav calendar.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published