Add weather module
This commit is contained in:
parent
52d7c13013
commit
ebb3333e78
6 changed files with 339 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue