forked from mud/bankerbot-rb
add coin gift amount to event response
This commit is contained in:
parent
b7c10342bb
commit
6772fa2711
2
coin.rb
2
coin.rb
@ -105,7 +105,7 @@ def give_coin(event)
|
|||||||
increment_coin(event.message.author.id, coin_amount)
|
increment_coin(event.message.author.id, coin_amount)
|
||||||
increment_coin(event.user.id, -coin_amount)
|
increment_coin(event.user.id, -coin_amount)
|
||||||
|
|
||||||
event.respond "How nice! <@#{event.message.author.id}> has received a coin from <@#{event.user.id}>!"
|
event.respond "How nice! <@#{event.message.author.id}> has received #{plural('coin', coins)} from <@#{event.user.id}>!"
|
||||||
end
|
end
|
||||||
|
|
||||||
bot.message(in: Integer(ENV['BOT_CHANNEL'])) do |event|
|
bot.message(in: Integer(ENV['BOT_CHANNEL'])) do |event|
|
||||||
|
Loading…
Reference in New Issue
Block a user