mirror of
https://github.com/jwinterm/node-tip-bot.git
synced 2026-10-17 05:41:42 +02:00
added terms and conditions
This commit is contained in:
@@ -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;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
+8
-1
@@ -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 <nick> <amount> - sends the specified amount of %full_name% to the specified nickname'
|
||||
- 'tip <nick> <amount> - 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.'
|
||||
|
||||
Reference in New Issue
Block a user