syncs upcoming google calendar events in the next 30 days to discord (cron every 3 hours)
a little clunky but does the job
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.