Port skybot hash plugin as a module
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
b312ff0338
commit
d9e279d8ed
4 changed files with 333 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue