automatically end event

This commit is contained in:
skeletable 2022-10-28 14:37:00 +02:00
parent 3875d7f3b8
commit e3f3f75a10
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" && time.Now().Before(time.Unix(1667260799, 0)) {
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")