Replace words on random messages
parent
2c726283dc
commit
2574f84c65
|
@ -80,6 +80,11 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
|
|||
if isUserMentioned(m, s.State.User) == true {
|
||||
s.ChannelMessageSend(m.ChannelID, textToButt(m, s))
|
||||
}
|
||||
|
||||
//Replace words in random messages
|
||||
if rand.Intn(100) > 85 {
|
||||
s.ChannelMessageSend(m.ChannelID, textToButt(m, s))
|
||||
}
|
||||
}
|
||||
|
||||
//Easy way to check if a user was mentioned in a message
|
||||
|
|
Loading…
Reference in New Issue