Port skybot hash plugin as a module

This commit is contained in:
Jean Chevronnet 2026-07-29 18:29:56 +00:00
parent 5e0ca7232a
commit 1c320ad0c3
4 changed files with 333 additions and 4 deletions

View file

@ -54,10 +54,11 @@ pub fn all() -> Vec<Box<dyn Module>> {
```
Shipped modules: **`builtins`** (`ping`, `echo`, `hello`), **`dice`**
(`roll [NdM]`), and **`weather`** (`add <location>` then `w [location]` via
wttr.in; per-user locations saved to a per-network JSON file, path from
`RUSTBOT_DATA_DIR`). Module tests live in `tests/` — construct a module and
assert on the `Action`s it returns, no network required.
(`roll [NdM]`), **`hash`** (`md5`/`sha1`/`sha256`/`hash <text>`, hand-rolled),
and **`weather`** (`add <location>` then `w [location]` via wttr.in; per-user
locations saved to a per-network JSON file, path from `RUSTBOT_DATA_DIR`).
Module tests live in `tests/` — construct a module and assert on the `Action`s
it returns, no network required.
## Build & run