diff --git a/buttsbot.go b/buttsbot.go index 34f9975..84970d0 100644 --- a/buttsbot.go +++ b/buttsbot.go @@ -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