diff options
| author | Jokler <jokler@protonmail.com> | 2020-01-06 05:48:19 +0100 |
|---|---|---|
| committer | Jokler <jokler@protonmail.com> | 2020-01-06 05:48:19 +0100 |
| commit | 75e2ce0d82e264491f1c4231920b808dba23be60 (patch) | |
| tree | 6f1fee97ba92957fe4d6352f7050ab3e510c7a25 /src/main.rs | |
| parent | 16ca828c9accad8c92bfc650be00bf88c5db28da (diff) | |
| download | pokebot-75e2ce0d82e264491f1c4231920b808dba23be60.tar.gz pokebot-75e2ce0d82e264491f1c4231920b808dba23be60.zip | |
Change the volume range back to 0..100
Numbers with a decimal point are a lot more annoying to type.
This is probably because the '0.' prefix required by almost all
values does not convey any meaningful information to the bot.
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 7b674b9..07cf681 100644 --- a/src/main.rs +++ b/src/main.rs @@ -175,7 +175,7 @@ fn handle_event<'a>(state: &State, conn: &ConnectionLock<'a>, event: &Event) { } Some("volume") => { if let Ok(volume) = f64::from_str(tokens[1]) { - state.volume(volume); + state.volume(volume / 100.0); } } Some("play") => { |
