use display name instead of user name

This commit is contained in:
mud mud 2022-10-07 20:46:36 +02:00
parent 1d134bd50a
commit e32b6f5a00
Signed by untrusted user: mud
GPG Key ID: D29C9385CC54F61C

View File

@ -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)