Add out of order to laundry

This commit is contained in:
Jack Merrill 2024-03-07 16:44:38 -05:00 committed by GitHub
parent 22afb5c770
commit f8972c9aa1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -113,6 +113,8 @@ func (c *Laundry) Exec(ctx shireikan.Context) error {
embed.AddField(fmt.Sprintf("%s - %s", machine.Name, machine.Type), fmt.Sprintf(":red_circle: **Status:** %s", machine.Status), false)
} else if machine.Status == "End of cycle" {
embed.AddField(fmt.Sprintf("%s - %s", machine.Name, machine.Type), fmt.Sprintf(":blue_circle: **Status:** %s", machine.Status), false)
} else if machine.Status == "Out of order" {
embed.AddField(fmt.Sprintf("%s - %s", machine.Name, machine.Type), fmt.Sprintf(":white_circle: **Status:** %s", machine.Status), false)
} else {
embed.AddField(fmt.Sprintf("%s - %s", machine.Name, machine.Type), fmt.Sprintf(":yellow_circle: **Status:** %s\n:alarm_clock: **Time Remaining:** %s", machine.Status, config.ConvertTimestampToDiscordTimestampWithFormat(*machine.EstimatedTime, "R")), false)
}