Browse Source

Formatting for climate

master
Gregory Rudolph 3 years ago
parent
commit
1feb2d79bd
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 10
      commands.go

10
commands.go

@ -192,10 +192,10 @@ func currentTemp(m chat1.MsgSummary) { @@ -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) { @@ -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) { @@ -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) {

Loading…
Cancel
Save