diff --git a/coin.rb b/coin.rb index 1ec6fcb..2a81365 100644 --- a/coin.rb +++ b/coin.rb @@ -102,6 +102,10 @@ def give_coin(event) coin_amount = 5 end + if reactor_coins < coin_amount + coin_amount = reactor_coins + end + increment_coin(event.message.author.id, coin_amount) increment_coin(event.user.id, -coin_amount)