curate/src/commands/admin/deposit.js
2020-08-12 02:38:51 -05:00

22 lines
635 B
JavaScript

const Command = require('../../structures/Command');
module.exports = class Deposit extends Command {
get name() { return 'deposit'; }
get _options() { return {
aliases: ['dp'],
permissions: ['admin']
}; }
async exec(message) {
const response = await this.client.lbry.listAddresses();
const address = await response.json();
if (await this.handleResponse(message, response, address)) return;
return message.channel.createMessage(`Address: ${address.result.items[0].address}`);
}
get metadata() { return {
category: 'Admin',
description: 'Gets the address of the master wallet.'
}; }
};