A bot to notify your discord server about upcoming events
Note: any command can return error due to Google API long responses. Don't panic if see a red message.
/create_calendar
- create a calendar (admins only)./delete_calendar
- delete server calendars (admins only)./list_events
- list all the events, show calendar url./create_event <label> <date>
- create an event (admins only)./delete_event <label>
- delete an event (admins only)./set_event_channel
- make the event channel receive event notifications (admins only)./ping
- is bot alive?
There's the link to add the bot: https://discord.com/oauth2/authorize?client_id=1225950004909314170&permissions=2048&scope=bot
Add the bot to a server and play with its functionality.
- A Google service account with Calendar API
- A Discord app with message content intent
- docker
- psql
- cargo sqlx-cli
Note: not sure if the init_db.sh
script will work on Windows, tested on Linux
- Insert your Google service account key into
secrets/google-sa-secret.json
- Insert your Discord App token into
secrets/discord-token.txt
- Insert your postgres db password into
secrets/db_password.txt
- Configure the app config, mainly db connection (defaults should be ok)
- Create
.env
file withDATABASE_URL
field (DATABASE_URL="postgres://..."
) pointing to your local db chmod +x scripts/inti_db.sh
(grant execution permissions)./scripts/init_db.sh
cargo r