Discord bot for Zimbra server.
- install Node.js
- install packages:
cd zimbra-bot && npm install
- create Discord bot and get a token
- create the
.env
file, and put the stringBOT_TOKEN={your token here}
into it - run
npm start
Prints all supported commands.
Allows to watch for events of a Zimbra Calendar, and to show event notifications.
Prints the help message on 'calendar' commands.
Prints all watched calendars.
Add the calendar to the watch list:
- url - calendar URL
- auth_token - Zimbra auth token (ZM_AUTH_TOKEN)
Remove the calendar from the watch list:
- url - calendar URL
Prints upcoming events.
const prefix = '!zimbra'
- commands prefix
const checkDbTimeout = 10000
- timeout to check DB changes (10 sec), re-reads DB only ifenv.CAL_CHANGED
var is setconst checkURLsTimeout = 120000
- timeout to check a calendar URL (120 sec)
The simple event notification consists of:
- title
- description
- image URL
Another option is to use Discord RichEmbed object:
You can use any embed visualizer to create a notification.