Formatting for climate
This commit is contained in:
10
commands.go
10
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) {
|
||||
|
||||
Reference in New Issue
Block a user