|
|
@ -180,7 +180,7 @@ func BumpSet(b BotCommand) bool { |
|
|
|
return false |
|
|
|
return false |
|
|
|
} |
|
|
|
} |
|
|
|
config.BumpTime = time.Now().Add(time.Duration(timer) * time.Minute).Add(-2 * time.Hour) |
|
|
|
config.BumpTime = time.Now().Add(time.Duration(timer) * time.Minute).Add(-2 * time.Hour) |
|
|
|
b.Session.ChannelMessageSend(b.Message.ChannelID, fmt.Sprintf("New bump time: %+v, expecting bump at %+v", config.BumpTime, config.BumpTime.Add(2*time.Hour))) |
|
|
|
b.Session.ChannelMessageSend(b.Message.ChannelID, fmt.Sprintf("New bump time: %+v, expecting bump at %+v", config.BumpTime, config.BumpTime.Add(2*time.Hour).Format("15:04:05"))) |
|
|
|
return true |
|
|
|
return true |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -255,7 +255,7 @@ func Status(b BotCommand) bool { |
|
|
|
} |
|
|
|
} |
|
|
|
status += "```" |
|
|
|
status += "```" |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
status += "There are no pending verifications." |
|
|
|
status += "There are no pending verifications.\n" |
|
|
|
} |
|
|
|
} |
|
|
|
if len(config.Probations) > 0 { |
|
|
|
if len(config.Probations) > 0 { |
|
|
|
status += "\nThe following users are on probation: \n```" |
|
|
|
status += "\nThe following users are on probation: \n```" |
|
|
@ -265,7 +265,7 @@ func Status(b BotCommand) bool { |
|
|
|
} |
|
|
|
} |
|
|
|
status += "```" |
|
|
|
status += "```" |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
status += "There are no users on probation." |
|
|
|
status += "There are no users on probation.\n" |
|
|
|
} |
|
|
|
} |
|
|
|
b.Session.ChannelMessageSend(config.AdminChannel, status) |
|
|
|
b.Session.ChannelMessageSend(config.AdminChannel, status) |
|
|
|
statistics := "```" |
|
|
|
statistics := "```" |
|
|
|