disable candy spawning

This commit is contained in:
skeletable 2022-10-25 18:01:21 +02:00
parent f120a9fa51
commit 3875d7f3b8
1 changed files with 8 additions and 8 deletions

16
main.go
View File

@ -785,14 +785,14 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
return
}
if m.ChannelID == "946459086554275883" {
rand.Seed(time.Now().Unix())
if rand.Intn(100) < 3 {
time.Sleep(1 * time.Second)
rand.Seed(time.Now().Unix() - rand.Int63n(time.Now().Unix()))
candy(s, m.ChannelID, "")
}
}
// if m.ChannelID == "946459086554275883" {
// rand.Seed(time.Now().Unix())
// if rand.Intn(100) < 3 {
// time.Sleep(1 * time.Second)
// rand.Seed(time.Now().Unix() - rand.Int63n(time.Now().Unix()))
// candy(s, m.ChannelID, "")
// }
// }
if strings.HasPrefix(m.Content, "pp!") {
blockfile, err := ioutil.ReadFile("blocklist.txt")