restrict candy to general
This commit is contained in:
parent
dee92fa396
commit
0962f78617
8
main.go
8
main.go
|
@ -784,9 +784,11 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
|
|||
return
|
||||
}
|
||||
|
||||
rand.Seed(time.Now().Unix())
|
||||
if rand.Intn(100) < 4 {
|
||||
candy(s, m.ChannelID, "")
|
||||
if m.ChannelID == "946459086554275883" {
|
||||
rand.Seed(time.Now().Unix())
|
||||
if rand.Intn(100) < 4 {
|
||||
candy(s, m.ChannelID, "")
|
||||
}
|
||||
}
|
||||
|
||||
if strings.HasPrefix(m.Content, "pp!") {
|
||||
|
|
Loading…
Reference in New Issue