From dceabb23c3f4cd4d2e6b69de49462dcd657f5977 Mon Sep 17 00:00:00 2001 From: mud mud Date: Tue, 11 Oct 2022 17:07:13 +0000 Subject: [PATCH] use author display_name for fraud coins --- coin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coin.rb b/coin.rb index f683ac5..df4cde5 100644 --- a/coin.rb +++ b/coin.rb @@ -55,7 +55,7 @@ end bot.message(in: Integer(ENV['BOT_CHANNEL'])) do |event| puts event.message if event.message.attachments.count { |x| x.filename.scan(/coin*/).length > 0 } > 0 - event.respond "Oh no! Looks like you tried to post a fradulent coin! #{event.author.name}, your coin balance has now been emptied. Let that be a lesson for next time!" + event.respond "Oh no! Looks like you tried to post a fradulent coin! #{event.author.display_name}, your coin balance has now been emptied. Let that be a lesson for next time!" empty_coin(event.author.id) end end