Skip to content

Commit

Permalink
Decrease the change of random mimics
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Lindgren committed Jul 17, 2024
1 parent 24022f0 commit e99052e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ private void onMessageReceivedEvent()
.filterWhen(event -> event.getAuthorAsMember().map(member -> !member.isBot()))
.filter(message -> Command.parseCommand(message.getContent()) == null)
.doOnNext(message -> logMessage(message))
.filter(message -> (random.nextFloat() * 100) > 99)
.filter(message -> (random.nextFloat() * 1000) > 999)
.flatMap(message -> message.getChannel()
.flatMap(channel -> channel.createMessage("YEAH, " + message.getContent())))
.subscribe();
Expand Down

0 comments on commit e99052e

Please sign in to comment.