lbry-wunderbot/bot/modules/tipbot.js
Fillerino 6ce8aade5b Fixed formating and added prettier to pre-commit.
Fixed the formatting, added prettier to auto run on pre-commit.
2017-11-07 18:25:05 +01:00

16 lines
626 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 address 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...
}
};