fix pluralize

This commit is contained in:
mud mud 2022-10-07 20:50:01 +02:00
parent e32b6f5a00
commit ae4b1ea6d5
Signed by: mud
GPG Key ID: D29C9385CC54F61C

View File

@ -34,7 +34,7 @@ def increment_coin(scoreboard, user)
end
def plural(string, count)
"#{count} #{string}#{count > 1 ? 's' : ''}"
"#{count} #{string}#{count != 1 ? 's' : ''}"
end
bot.message(with_text: 'GET COIN' ) do |event|