fix pluralize
This commit is contained in:
parent
e32b6f5a00
commit
ae4b1ea6d5
2
coin.rb
2
coin.rb
@ -34,7 +34,7 @@ def increment_coin(scoreboard, user)
|
|||||||
end
|
end
|
||||||
|
|
||||||
def plural(string, count)
|
def plural(string, count)
|
||||||
"#{count} #{string}#{count > 1 ? 's' : ''}"
|
"#{count} #{string}#{count != 1 ? 's' : ''}"
|
||||||
end
|
end
|
||||||
|
|
||||||
bot.message(with_text: 'GET COIN' ) do |event|
|
bot.message(with_text: 'GET COIN' ) do |event|
|
||||||
|
Loading…
Reference in New Issue
Block a user