From 54bc64e3372e9eaec68316e628f2c7012a310e79 Mon Sep 17 00:00:00 2001 From: fred Date: Tue, 14 Feb 2023 12:29:59 +0100 Subject: [PATCH] fix wrong variable --- coin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coin.rb b/coin.rb index 17d3fef..b170e50 100644 --- a/coin.rb +++ b/coin.rb @@ -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 #{plural('coin', coins)} from <@#{event.user.id}>!" + event.respond "How nice! <@#{event.message.author.id}> has received #{plural('coin', coin_amount)} from <@#{event.user.id}>!" end bot.message(in: Integer(ENV['BOT_CHANNEL'])) do |event|