diff --git a/bin/tipbot.js b/bin/tipbot.js index 2dfde97..5709814 100644 --- a/bin/tipbot.js +++ b/bin/tipbot.js @@ -196,8 +196,8 @@ client.addListener('message', function(from, channel, message) { max = Math.floor(max); } - if(amount < settings.coin.min_tip) { - client.say(channel, settings.messages.tip_too_small.expand({from: from, to: to, amount: amount})); + if(amount < settings.coin.min_rain) { + client.say(channel, settings.messages.rain_too_small.expand({from: from, amount: amount})); return; } diff --git a/config/config.sample.yml b/config/config.sample.yml index 7eacc70..51d8ca7 100644 --- a/config/config.sample.yml +++ b/config/config.sample.yml @@ -23,6 +23,7 @@ coin: min_withdraw: 5 min_confirmations: 3 min_tip: 10 + min_rain: 100 short_name: Đ full_name: dogecoin webadmin: @@ -64,6 +65,7 @@ messages: withdraw_too_small: 'Sorry %name%, you need to withdraw at least %min_withdraw%%short_name% (you have %balance%%short_name%)' invalid_address: 'Sorry %name%, the address you specified is invalid (%address%).' tip_too_small: 'Sorry %from%, your tip to %to% (%amount%%short_name%) is too small (min. %min_tip%%short_name%).' + rain_too_small: 'Sorry %from%, your rain (%amount%%short_name%) is too small (min. %min_rain%%short_name%).' tip_self: "Sorry %name%, you can't tip yourself!" invalid_amount: 'Sorry %name%, "%amount%" is not a correct amount.' rain: '%name% rained %amount%%short_name% upon %list%.'