use author display_name for fraud coins

This commit is contained in:
mud mud 2022-10-11 17:07:13 +00:00
parent 2ebe97ebcd
commit dceabb23c3

View File

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