From 1feb2d79bde1fe9e4af7675af7714fb13ba2b2da Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Tue, 6 Jul 2021 16:04:39 -0400 Subject: [PATCH] Formatting for climate --- commands.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/commands.go b/commands.go index 70b69b7..e13e840 100644 --- a/commands.go +++ b/commands.go @@ -192,10 +192,10 @@ func currentTemp(m chat1.MsgSummary) { insideTemp = (climateState.InsideTemp * 1.8) + 32 } if climateState.IsClimateOn { - k.SendMessageByConvID(m.ConvID, "Your climate on and set to %+v, current temp is: %+v inside %+v", + k.SendMessageByConvID(m.ConvID, "Your climate on and set to %.2f, current temp is: %.2f inside %+v", tempSetting, insideTemp, v.DisplayName) } else { - k.SendMessageByConvID(m.ConvID, "Your climate off but set to %+v, current temp is %+v inside %+v", + k.SendMessageByConvID(m.ConvID, "Your climate off but set to %.2f, current temp is %.2f inside %+v", tempSetting, insideTemp, v.DisplayName) } } @@ -266,9 +266,9 @@ func setClimate(m chat1.MsgSummary) { insideTemp = (climateState.InsideTemp * 1.8) + 32 } if climateState.IsClimateOn { - k.SendMessageByConvID(m.ConvID, "Your climate on and set to %+v, current temp is: %+v", tempSetting, insideTemp) + k.SendMessageByConvID(m.ConvID, "Your climate on and set to %.2f, current temp is: %.2f", tempSetting, insideTemp) } else { - k.SendMessageByConvID(m.ConvID, "Your climate off but set to %+v", tempSetting) + k.SendMessageByConvID(m.ConvID, "Your climate off but set to %.2f", tempSetting) } } @@ -324,7 +324,7 @@ func startCharge(m chat1.MsgSummary) { } else { k.SendMessageByConvID(m.ConvID, "You must plug in to an L1/L2 charger to use this command.") } - + } func stopCharge(m chat1.MsgSummary) {