Skip to content
This repository was archived by the owner on Nov 29, 2025. It is now read-only.

mrhappyma/gcal-discord-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gcal-discord-sync

syncs upcoming google calendar events in the next 30 days to discord (cron every 3 hours)

a little clunky but does the job

Setup

Create a Google Cloud project, and enable the calendar API. Configure the consent screen, you don't need any scopes and you should add yourself as a test user. Most of the other fields don't matter. Create an OAuth client ID for a desktop application (or web if you're deploying somewhere. set the redirect url env variable then.). Click OK through most of the prompts, and store your client ID and secret somewhere.

Create your Discord bot, and add it to your server.

Set your environment variables:

CLIENT_ID = # google client id
PROJECT_ID = # google project id
CLIENT_SECRET = # google client secret
CALENDAR_ID = # source google calendar id
BOT_TOKEN = # discord bot token
GUILD_ID = # target discord guild id
DATABASE_URL = # oh yeah you need a postgres database too
REDIRECT_URL = #optional, helpful if you're deploying it somewhere. no trailing slash.

bun install bunx prisma db push and bun . and you're good to go.

About

google calendar --> discord

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published