Remove social channel setup
This commit is contained in:
7
main.go
7
main.go
@ -28,7 +28,7 @@ var (
|
|||||||
lastPM = make(map[string]time.Time)
|
lastPM = make(map[string]time.Time)
|
||||||
introMsg = make(map[string]string)
|
introMsg = make(map[string]string)
|
||||||
quotes = []string{"The hardest choices require the strongest wills.", "You're strong, but I could snap my fingers and you'd all cease to exist.", "Fun isn't something one considers when balancing the universe. But this... does put a smile on my face.", "Perfectly balanced, as all things should be.", "I am inevitable."}
|
quotes = []string{"The hardest choices require the strongest wills.", "You're strong, but I could snap my fingers and you'd all cease to exist.", "Fun isn't something one considers when balancing the universe. But this... does put a smile on my face.", "Perfectly balanced, as all things should be.", "I am inevitable."}
|
||||||
version = "3.2"
|
version = "git"
|
||||||
gitCommit string
|
gitCommit string
|
||||||
commands []Command
|
commands []Command
|
||||||
)
|
)
|
||||||
@ -156,11 +156,6 @@ func runPurge(s *discordgo.Session) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func cleanSocials(s *discordgo.Session) {
|
func cleanSocials(s *discordgo.Session) {
|
||||||
if len(config.SocialChanns) == 0 {
|
|
||||||
config.SocialChanns = append(config.SocialChanns, "730437117913858129")
|
|
||||||
config.SocialChanns = append(config.SocialChanns, "730439200771670076")
|
|
||||||
config.SocialChanns = append(config.SocialChanns, "730439324675473470")
|
|
||||||
}
|
|
||||||
for _, channel := range config.SocialChanns {
|
for _, channel := range config.SocialChanns {
|
||||||
go func(channel string, s *discordgo.Session) {
|
go func(channel string, s *discordgo.Session) {
|
||||||
messages, _ := s.ChannelMessages(channel, 100, "", "", "")
|
messages, _ := s.ChannelMessages(channel, 100, "", "", "")
|
||||||
|
|||||||
Reference in New Issue
Block a user