Remove unnecessary bloat
This commit is contained in:
25
config.go
25
config.go
@ -104,31 +104,6 @@ func saveConfig() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func setAdminChannel(s *discordgo.Session, m *discordgo.MessageCreate) {
|
|
||||||
config.AdminChannel = m.ChannelID
|
|
||||||
if len(m.MentionRoles) != 1 {
|
|
||||||
s.ChannelMessageSend(config.AdminChannel, "Invalid verified role")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
config.VerifiedRole = m.MentionRoles[0]
|
|
||||||
s.ChannelMessageDelete(m.ChannelID, m.ID)
|
|
||||||
msg, _ := s.ChannelMessageSend(config.AdminChannel, "Run !setup in the monitored channel to finish setup.")
|
|
||||||
setupMsg = msg.ID
|
|
||||||
}
|
|
||||||
func setMonitorChann(s *discordgo.Session, m *discordgo.MessageCreate) {
|
|
||||||
config.MonitorChann = m.ChannelID
|
|
||||||
if len(m.MentionRoles) != 1 {
|
|
||||||
s.ChannelMessageSend(config.AdminChannel, "Invalid monitor role")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
config.MonitorRole = m.MentionRoles[0]
|
|
||||||
s.ChannelMessageDelete(m.ChannelID, m.ID)
|
|
||||||
s.ChannelMessageSend(config.AdminChannel, "Setup completed. Run !status for status.")
|
|
||||||
s.ChannelMessageDelete(config.AdminChannel, setupMsg)
|
|
||||||
go purgeTimer(s)
|
|
||||||
saveConfig()
|
|
||||||
}
|
|
||||||
|
|
||||||
func bumpTimer(s *discordgo.Session) {
|
func bumpTimer(s *discordgo.Session) {
|
||||||
if !bump {
|
if !bump {
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user