From 40a297cfc227370c50868e2c372a92024796b20b Mon Sep 17 00:00:00 2001 From: unek Date: Sun, 23 Feb 2014 10:55:20 +0100 Subject: [PATCH] added terms and conditions --- bin/tipbot.js | 6 ++++++ config/config.yml | 9 ++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/bin/tipbot.js b/bin/tipbot.js index e98bdcf..5259909 100644 --- a/bin/tipbot.js +++ b/bin/tipbot.js @@ -304,6 +304,12 @@ client.addListener('message', function(from, channel, message) { client.say(channel, message.expand({})); } break; + case 'terms': + for(var i = 0; i < settings.messages.terms.length; i++) { + var message = settings.messages.terms[i]; + client.say(channel, message.expand({})); + } + break; } }); }); diff --git a/config/config.yml b/config/config.yml index a3154e3..15e3977 100644 --- a/config/config.yml +++ b/config/config.yml @@ -41,6 +41,9 @@ commands: address: pm: true channel: false + terms: + pm: true + channel: false messages: error: 'Sorry %name%, something went wrong.' no_funds: "Sorry %name%, you don't have enough funds (you're %short%%short_name% short)" @@ -62,4 +65,8 @@ messages: - 'balance - displays your current wallet balance' - 'address - displays %full_name% address where you can send your funds to the tip bot' - 'withdraw <%full_name% address> - withdraws your whole wallet balance to specified address (taking %withdrawal_fee% withdrawal fee)' - - 'tip - sends the specified amount of %full_name% to the specified nickname' \ No newline at end of file + - 'tip - sends the specified amount of %full_name% to the specified nickname' + - 'terms - displays terms and conditions for using %nick%' + terms: + - 'There are no fees to use %nick%, with the exception of %withdrawal_fee%%short_name% fee on withdrawals.' + - 'In no even shall %nick% be responsible in the event of lost, stolen or misdirected funds.'