| Crates.io | aoc_leaderbot_slack_lib |
| lib.rs | aoc_leaderbot_slack_lib |
| version | 2.0.0 |
| created_at | 2025-11-27 02:51:27.865364+00 |
| updated_at | 2025-11-28 06:34:19.016619+00 |
| description | Slack-specific support library for aoc_leaderbot, an Advent of Code leaderboard-watching bot |
| homepage | https://github.com/clechasseur/aoc_leaderbot/tree/main/aoc_leaderbot_slack_lib#readme |
| repository | https://github.com/clechasseur/aoc_leaderbot |
| max_upload_size | |
| id | 1952982 |
| size | 137,532 |
Library implementing Slack-specific helpers for aoc_leaderbot, a bot that can watch an Advent of Code private leaderboard for changes and report them to various channels like Slack.
Add aoc_leaderbot_slack_lib to your dependencies:
[dependencies]
aoc_leaderbot_slack_lib = "2.0.0"
or by running:
cargo add aoc_leaderbot_slack_lib
This library includes implementations of the traits found in aoc_leaderbot_lib.
SlackWebhookReporterRequired feature: reporter-webhook (enabled by default)
An implementation of the Reporter trait that reports changes to the leaderboard to a Slack channel via a Slack webhook.
The reporter has several configurable input properties. Although most have default values, at least two must be specified explicitly:
webhook_url: URL of the Slack webhook to use to report changes.channel: Slack channel where to post message reporting changes.There are other optional properties that can be specified.
The easiest way to create a reporter instance would be via the builder.
Many properties will also default to reading their values from environment variables (see each property's documentation for details).
aoc_leaderbot_slack_lib currently builds on Rust 1.88 or newer.
For information about contributing to this project, see CONTRIBUTING. For information regarding local development, see DEVELOPMENT.