Browse Source

Removed cruft that is in json

hkremer/rebranding
Gregory Rudolph 4 years ago
parent
commit
1882c5a738
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 16
      config.go

16
config.go

@ -12,23 +12,7 @@ import ( @@ -12,23 +12,7 @@ import (
func status(s *discordgo.Session) {
defer log.PanicSafe()
monChan, _ := s.Channel(config.MonitorChann)
roles, _ := s.GuildRoles(config.GuildID)
var monRole discordgo.Role
var veriRole discordgo.Role
for _, role := range roles {
if role.ID == config.MonitorRole {
monRole = *role
}
if role.ID == config.VerifiedRole {
veriRole = *role
}
}
status := fmt.Sprintf("Uptime: %+v\n", time.Since(startupTime))
status += fmt.Sprintf("Monitor role: %+v\n", monRole.Mention())
status += fmt.Sprintf("Monitor chann: %+v\n", monChan.Mention())
status += fmt.Sprintf("Verified role: %+v\n", veriRole.Mention())
status += fmt.Sprintf("Last bump: %+v\n", time.Since(config.BumpTime))
status += fmt.Sprintf("Last bumper: <@%+v>\n", config.LastBumper)
status += fmt.Sprintf("Bump needed: %+v\n", bump)

Loading…
Cancel
Save