Skip to content

Commit

Permalink
fix: some facts
Browse files Browse the repository at this point in the history
  • Loading branch information
moul committed Apr 2, 2020
1 parent 1c3a771 commit 7501358
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions chaos-bot/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ func init() {
}
// FIXME: !pause 5min
// FIXME: !bot-stats
// FIXME: !recettator
// FIXME: !pipotron
// FIXME: !blague

Expand Down Expand Up @@ -109,7 +108,14 @@ func doHelp(s *discordgo.Session, m *discordgo.MessageCreate) error {
}

func doBite(s *discordgo.Session, m *discordgo.MessageCreate) error {
s.ChannelMessageSend(m.ChannelID, "B"+strings.Repeat("=", rand.Intn(42)+1)+"D")
switch m.Author.Username {
case "manfred":
s.ChannelMessageSend(m.ChannelID, "B"+strings.Repeat("=", rand.Intn(10)+42)+"D")
case "":
s.ChannelMessageSend(m.ChannelID, "{(.)}")
default:
s.ChannelMessageSend(m.ChannelID, "B"+strings.Repeat("=", rand.Intn(42)+1)+"D")
}
return nil
}

Expand Down

0 comments on commit 7501358

Please sign in to comment.