small pixel drawing of a pufferfish neoarkbot

warn
Jes Olson j3s@c3f.net
Mon, 07 Mar 2022 21:46:36 -0500
commit

961c56d409c241b174b070b9450ff3c10fed7d73

parent

23bbd033362491cd12a72391234e74c31168b8d0

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M main.gomain.go

@@ -68,7 +68,8 @@ vol := r.FindString(e.Message)

vol64, _ := strconv.ParseFloat(vol, 32) vol32 := float32(vol64) truevol := vol32 / 100.0 - if truevol > 100 { + if vol32 > 100 { + e.Sender.Send("volume too high") return } stream.Volume = truevol