Generate Rust maps and post photos of them to a Discord channel via webhook.
SeedBot for Rust is an experiment with Discord Webhooks and BeautifulSoup. The script generates a Rust map with beancan.io, then sends a message to a Discord text channel using Discord's webhook functionality.
Theoretically (and once the project is finished), one could use a tool like cron to run the script on an interval (i.e. hourly).
- Clone repository.
- Clone dependencies with
git submodule init. - Copy
cfg/config-example.jsontoconfig.jsonand enter your info (see below for help). - Run
seedbot.pyusing a scheduler (e.g. cron) or by hand.
The configuration file is pretty self-explanatory. Here's an explanation anyway:
webhook_url: Webhook for a Discord text channel.- See this article for more info about creating a webhook.
beancan_emailandbeancan_password: Login information for a beancan.io account.map_size: How large of a map you'd like to generate.- Min. 1000, max 6000.
timeout: How long to wait before HTTP requests are terminated.
| Completed | Feature |
|---|---|
| ✅ | Basic webhook functionality |
| ✅ | Read beancan.io login info and map size from config.json |
| ✅ | Generate map on beancan.io |
| ✅ | Retrieve and parse map data with BeautifulSoup |
| ✅ | Format map data |
| ❌ | Implement basic error handling |
| ❌ | Implement retry backoff in case of an error |
| ❌ | Add ability to filter by monuments (Airport, Harbor, Launch Site, etc.) |
| ❌ | Test and finalize error handling |
| ❌ | Finalize documentation |