lbry-wunderbot/bot/modules/tipbot.js
Fillerino 288e166f20 Uploaded the main code!
Uploaded the main sourcecode and some unfinished commands!
2017-10-25 21:31:42 +02:00

17 lines
No EOL
614 B
JavaScript

'use strict';
const bitcoin = require('bitcoin');
let config = require('config');
config = config.get('lbrycrd');
const lbry = new bitcoin.Client(config);
exports.commands = [
"tip"
]
exports.tip = {
usage: "<subcommand>",
description: 'balance: get your balance\n deposit: get adress for your deposits\n withdraw ADDRESS AMOUNT: withdraw AMOUNT credits to ADDRESS\n <user> <amount>: mention a user with @ and then the amount to tip them',
process: async function(bot,msg,suffix){
return; // Tipping is now handled by the separate tipbot(in branch tipbot_dc), no need to to anything here...
}
}