use display name instead of user name
This commit is contained in:
parent
1d134bd50a
commit
e32b6f5a00
6
coin.rb
6
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)
|
||||
|
Loading…
Reference in New Issue
Block a user