automatically end event
This commit is contained in:
parent
3875d7f3b8
commit
e3f3f75a10
16
main.go
16
main.go
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue