Skip to content

Aelerinya/schlaugh-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Schlaugh Bot

A bot that posts my latest schlaupdate to my Discord server.

I computed the schlaupdate to be at 9 AM UTC, so the bot runs at 9:10 AM UTC.

The bot uses Cloudflare Workers as the runtime with a cron trigger. Cloudflare free plan is sufficient for this use case.

Configuration

The list of user IDs to fetch is configured in the wrangler.toml file.

The Discord webhook is managed using Worker Secrets.

For local development, create a .dev.vars file with content:

DISCORD_WEBHOOK_URL=...

For deployment, set the secret value with wrangler:

npx wrangler secret put DISCORD_WEBHOOK_URL

Deployment

npx wrangler deploy

What it looks like

Screenshot of the bot posting the latest schlaupdate

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors