From 6c8e2e62e72f472a7163521c5a14727ab343c06a Mon Sep 17 00:00:00 2001 From: unek Date: Mon, 5 May 2014 21:53:22 +0200 Subject: [PATCH] better explaination if min rains --- bin/tipbot.js | 2 +- config/config.sample.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/tipbot.js b/bin/tipbot.js index af03077..e9a7f2e 100644 --- a/bin/tipbot.js +++ b/bin/tipbot.js @@ -219,7 +219,7 @@ client.addListener('message', function(from, channel, message) { if(amount / max < settings.coin.min_rain) { - client.say(channel, settings.messages.rain_too_small.expand({from: from, amount: amount})); + client.say(channel, settings.messages.rain_too_small.expand({from: from, amount: amount, min_rain: settings.coin.min_rain * max})); return; } diff --git a/config/config.sample.yml b/config/config.sample.yml index 3336d60..4f3fb4a 100644 --- a/config/config.sample.yml +++ b/config/config.sample.yml @@ -65,7 +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%).' + rain_too_small: 'Sorry %from%, your rain (%amount%%short_name%) is too small (min. %min_rain%%short_name%). Increase the value or decrease max wet users.' 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%.'