restrict candy to general

This commit is contained in:
skeletable 2022-10-02 20:58:43 +02:00
parent dee92fa396
commit 0962f78617
1 changed files with 5 additions and 3 deletions

View File

@ -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!") {