A simple web application that allows users to schedule messages to be sent to a Discord channel via a webhook. This application uses GitHub Actions as a serverless backend to send messages at scheduled times.
- Schedule messages to be sent at specific times
- Messages will be sent even when your browser is closed
- No user authentication required
- Manage scheduled messages (view and delete)
- Uses GitHub Actions as a serverless runner
- Users enter a message and select a time
- The message is stored in a GitHub repository
- A GitHub Action runs on a schedule to check for and send messages
- The scheduled messages are sent directly to Discord from GitHub's servers
-
Before deploying, replace these values in the source code:
- In
js/github.js: ReplaceYOUR_GITHUB_PERSONAL_ACCESS_TOKENwith your actual token - In
js/github.js: ReplaceYOUR_USERNAME/YOUR_REPOSITORYwith your GitHub username and repository name - In
js/webhook.js: ReplaceYOUR_DISCORD_WEBHOOK_URLwith the Discord webhook URL
- In
-
Push the code to your GitHub repository
-
Set up the GitHub Action:
- Make sure the
.github/workflows/send-messages.ymlfile is in your repository - Add the Discord webhook URL as a repository secret named
DISCORD_WEBHOOK_URL
- Make sure the
-
Enable GitHub Pages in repository settings:
- Go to Settings > Pages
- Set source to the main branch
-
Your scheduler will be available at
https://[your-username].github.io/[repo-name]/
The Personal Access Token needs the repo scope to be able to read and write to the repository. Create one at GitHub Personal Access Tokens.
- All messages are stored in your GitHub repository
- No user credentials are required for end users
- All API requests are made using your GitHub token