diff --git a/coin.rb b/coin.rb index 5caf63e..2d99995 100644 --- a/coin.rb +++ b/coin.rb @@ -46,15 +46,15 @@ bot.message(with_text: 'GET COIN' ) do |event| coin_state_active = false coins = get_coin_count(scoreboard, event.author.id) - event.respond "Nice catch, #{event.author.name}! You have #{plural('coin', coins)} now!" + event.respond "Nice catch, #{event.author.display_name}! You have #{plural('coin', coins)} now!" else - event.respond "No coins for you, #{event.author.name}!" + event.respond "No coins for you, #{event.author.display_name}!" end end bot.message(with_text: '/coins') do |event| coins = get_coin_count(load_scoreboard(), event.author.id) - event.respond "#{event.author.name}, you have #{plural('coin', coins)}!" + event.respond "#{event.author.display_name}, you have #{plural('coin', coins)}!" end bot.run(true)