Add weather module

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Jean Chevronnet 2026-07-29 17:32:33 +00:00
parent 33fbe7d5fc
commit ea26e25546
No known key found for this signature in database
GPG key ID: 439666D63A9477E4
6 changed files with 339 additions and 5 deletions

View file

@ -53,8 +53,10 @@ pub fn all() -> Vec<Box<dyn Module>> {
}
```
Shipped modules: **`builtins`** (`ping`, `echo`, `hello`) and **`dice`**
(`roll [NdM]`). Module tests live in `tests/modules.rs` — construct a module and
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.
## Build & run