Replace words on random messages

pull/2/head
pocketjawa 2019-04-27 13:45:05 -04:00
parent 2c726283dc
commit 2574f84c65
1 changed files with 5 additions and 0 deletions

View File

@ -80,6 +80,11 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
if isUserMentioned(m, s.State.User) == true { if isUserMentioned(m, s.State.User) == true {
s.ChannelMessageSend(m.ChannelID, textToButt(m, s)) 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 //Easy way to check if a user was mentioned in a message