add coin gift amount to event response

This commit is contained in:
mud mud 2023-02-14 12:27:44 +01:00
parent b7c10342bb
commit 6772fa2711
Signed by untrusted user: mud
GPG Key ID: D29C9385CC54F61C

View File

@ -105,7 +105,7 @@ def give_coin(event)
increment_coin(event.message.author.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
bot.message(in: Integer(ENV['BOT_CHANNEL'])) do |event|