commit
5c21d0fd22
2 changed files with 1913 additions and 2 deletions
|
@ -15,7 +15,7 @@ exports.tip = {
|
||||||
let tipper = msg.author.id,
|
let tipper = msg.author.id,
|
||||||
words = msg.content.trim().split(' ').filter( function(n){return n !== "";} ),
|
words = msg.content.trim().split(' ').filter( function(n){return n !== "";} ),
|
||||||
subcommand = words.length >= 2 ? words[1] : 'help';
|
subcommand = words.length >= 2 ? words[1] : 'help';
|
||||||
switch subcommand {
|
switch (subcommand) {
|
||||||
case 'help': doHelp(msg); break;
|
case 'help': doHelp(msg); break;
|
||||||
case 'balance': doBalance(msg, tipper); break;
|
case 'balance': doBalance(msg, tipper); break;
|
||||||
case 'deposit': doDeposit(msg, tipper); break;
|
case 'deposit': doDeposit(msg, tipper); break;
|
||||||
|
@ -23,7 +23,7 @@ exports.tip = {
|
||||||
default: doTip(msg, tipper, words);
|
default: doTip(msg, tipper, words);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function doBalance(message, tipper) {
|
function doBalance(message, tipper) {
|
||||||
lbry.getBalance(tipper, 1, function(err, balance) {
|
lbry.getBalance(tipper, 1, function(err, balance) {
|
||||||
|
|
1911
package-lock.json
generated
Normal file
1911
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue