|
|
|
@ -238,32 +238,31 @@ func Status(b BotCommand) bool {
@@ -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 <t:%+v:t>", 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 <t:%+v:t>\n", probationUser.Username, join.Add(2*time.Hour).Unix()) |
|
|
|
|
} |
|
|
|
|
status += "```" |
|
|
|
|
status += "\n" |
|
|
|
|
} else { |
|
|
|
|
status += "There are no users on probation.\n" |
|
|
|
|
} |
|
|
|
|