https://github.com/mrrfv/discord-webhook-qotd-bot-rs
Rust rewrite of a Discord bot that sends a "question of the day"
https://github.com/mrrfv/discord-webhook-qotd-bot-rs
discord discord-bot engagement qotd rust webhooks
Last synced: about 1 month ago
JSON representation
Rust rewrite of a Discord bot that sends a "question of the day"
- Host: GitHub
- URL: https://github.com/mrrfv/discord-webhook-qotd-bot-rs
- Owner: mrrfv
- License: other
- Created: 2025-04-21T10:39:35.000Z (about 2 months ago)
- Default Branch: master
- Last Pushed: 2025-04-21T11:25:50.000Z (about 2 months ago)
- Last Synced: 2025-04-24T05:14:03.418Z (about 1 month ago)
- Topics: discord, discord-bot, engagement, qotd, rust, webhooks
- Language: Rust
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Discord Webhook QOTD Bot - Rust rewrite
A Rust rewrite of [discord-webhook-qotd-bot](https://github.com/mrrfv/discord-webhook-qotd-bot), an application that posts a "question of the day" to a Discord channel using a webhook, done to learn the language. Like the original Node.js project, it accepts a JSON array containing questions.
## Features
- Doesn't maintain its own schedule by design, as such features are provided by the operating system (Task Scheduler on Windows, cron on Linux)
- Automatically saves and increments progress
- Sends visually appealing embeds with additional information, such as the amount of questions remaining
- Starts over from the beginning when all questions have been asked
- Not vibe coded## Usage
1. Copy the example question and progress files, found in the `example_data` directory, where you want to store this data.
2. Edit the `questions.json` file to add your own questions, adhering to the format.
3. Build the project using `cargo build --release` or download the precompiled binary from the releases page.
4. Run the program, specifying all the required environment variables:- `DISCORD_WEBHOOK_URL`: The URL of the Discord webhook to send messages to.
- `PROGRESS_FILE`: The path to the progress file (default: `progress.json`).
- `QUESTION_FILE`: The location to the file containing questions (default: `questions.json`).5. Schedule it to run at your desired interval using your operating system's task scheduler.