From ae4b1ea6d5871bd8cbfbfa88c240f9dcec9e7c4d Mon Sep 17 00:00:00 2001 From: fred Date: Fri, 7 Oct 2022 20:50:01 +0200 Subject: [PATCH] fix pluralize --- coin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coin.rb b/coin.rb index 2d99995..c9c9f60 100644 --- a/coin.rb +++ b/coin.rb @@ -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|