Skip to content

Commit

Permalink
Merge pull request #246 from Thatguyello/master
Browse files Browse the repository at this point in the history
feat(counting): Update CountingListener.kt
  • Loading branch information
Dawsson authored May 12, 2024
2 parents 6913522 + 5c81b95 commit 4020a2c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class CountingListener: ListenerAdapter() {
if (evaluated == currentCount + 1) {
if (userId.equals(lastCount?.author?.id, true)) return run {
event.message.addReaction(Server.downvoteEmoji)

val insultMessage = CountingInsults.doubleCountInsults.random()

event.message.reply("$insultMessage The count has been reset to 1.").queue()
Expand All @@ -65,13 +66,14 @@ class CountingListener: ListenerAdapter() {
event.message.reply("I'll let this one slide").queue()
return
}

val next = currentCount + 1
fuckedUp(event.author)
event.message.addReaction(Server.downvoteEmoji).queue()

val insultMessage = CountingInsults.fuckedUpInsults.random()

event.message.reply("$insultMessage The next number was $next, not $evaluated.")
event.message.reply("$insultMessage ${lastCount?.author?.asMention}, The next number was $next, not $evaluated.").queue()
}
}
}
Expand Down

0 comments on commit 4020a2c

Please sign in to comment.