forked from mud/bankerbot-rb
use author display_name for fraud coins
This commit is contained in:
parent
2ebe97ebcd
commit
dceabb23c3
2
coin.rb
2
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
|
||||
|
Loading…
Reference in New Issue
Block a user