diff --git a/config.go b/config.go index 1b04f1d..65b520f 100644 --- a/config.go +++ b/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) { if !bump { return