From cb38b8e5c44fad73b678b7fe0e4664b798149d8c Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Tue, 11 Jan 2022 10:58:41 -0500 Subject: [PATCH] Clean up status times --- commands.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/commands.go b/commands.go index 65fe6e8..6e59d51 100644 --- a/commands.go +++ b/commands.go @@ -238,32 +238,31 @@ func Status(b BotCommand) bool { status += fmt.Sprintf("Last bumper: %+v\n", userFromID(config.LastBumper).Username) status += fmt.Sprintf("Bump needed: %+v\n", bump) if len(config.Unverified) > 0 { - status += "Unverified users:\n```" + status += "Unverified users:\n" for k, v := range config.Unverified { uvUser := userFromID(k) status += fmt.Sprintf("\n%+v will be removed at ", uvUser.Username, v.Add(1*time.Hour).Unix()) } - status += "```" + status += "\n" } else { status += "There are no unverified users.\n" } if len(config.Verifications) > 0 { status += "Pending verifications:\n" - status += "```" for _, v := range config.Verifications { status += fmt.Sprintf("%+v has submitted a verification.", v.Username) } - status += "```" + status += "\n" } else { status += "There are no pending verifications.\n" } if len(config.Probations) > 0 { - status += "\nThe following users are on probation: \n```" + status += "\nThe following users are on probation: \n" for uid, join := range config.Probations { probationUser := userFromID(uid) status += fmt.Sprintf("%+v for until \n", probationUser.Username, join.Add(2*time.Hour).Unix()) } - status += "```" + status += "\n" } else { status += "There are no users on probation.\n" }