mirror of
https://github.com/LBRYFoundation/curate.git
synced 2025-08-23 17:37:25 +00:00
Small tweaks, update embed color in embeds and default config
This commit is contained in:
parent
3e65687166
commit
124bddcce0
4 changed files with 6 additions and 2 deletions
|
@ -10,7 +10,7 @@ module.exports = {
|
||||||
// [boolean] Whether debug logs will be shown
|
// [boolean] Whether debug logs will be shown
|
||||||
debug: false,
|
debug: false,
|
||||||
// [number] The main embed color (#ffffff -> 0xffffff)
|
// [number] The main embed color (#ffffff -> 0xffffff)
|
||||||
embedColor: 0x429bce,
|
embedColor: 0x15521c,
|
||||||
// [string] curator_role_id
|
// [string] curator_role_id
|
||||||
curatorRoleID: "",
|
curatorRoleID: "",
|
||||||
// [string] admin_role_id
|
// [string] admin_role_id
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
const Command = require('../../structures/Command');
|
const Command = require('../../structures/Command');
|
||||||
|
const config = require('config');
|
||||||
|
|
||||||
module.exports = class AdminBalance extends Command {
|
module.exports = class AdminBalance extends Command {
|
||||||
get name() { return 'adminbalance'; }
|
get name() { return 'adminbalance'; }
|
||||||
|
@ -13,6 +14,7 @@ module.exports = class AdminBalance extends Command {
|
||||||
const wallet = await response.json();
|
const wallet = await response.json();
|
||||||
if (await this.handleResponse(message, response, wallet)) return;
|
if (await this.handleResponse(message, response, wallet)) return;
|
||||||
return message.channel.createMessage({ embed: {
|
return message.channel.createMessage({ embed: {
|
||||||
|
color: config.embedColor,
|
||||||
description: `**Available:** ${wallet.result.available} LBC\n\n` +
|
description: `**Available:** ${wallet.result.available} LBC\n\n` +
|
||||||
`Reserved in Supports: ${wallet.result.reserved_subtotals.supports} LBC\n` +
|
`Reserved in Supports: ${wallet.result.reserved_subtotals.supports} LBC\n` +
|
||||||
`Total: ${wallet.result.total} LBC`
|
`Total: ${wallet.result.total} LBC`
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
const Command = require('../../structures/Command');
|
const Command = require('../../structures/Command');
|
||||||
const Util = require('../../util');
|
const Util = require('../../util');
|
||||||
|
const config = require('config');
|
||||||
|
|
||||||
module.exports = class Balance extends Command {
|
module.exports = class Balance extends Command {
|
||||||
get name() { return 'balance'; }
|
get name() { return 'balance'; }
|
||||||
|
@ -15,6 +16,7 @@ module.exports = class Balance extends Command {
|
||||||
const wallet = await response.json();
|
const wallet = await response.json();
|
||||||
if (await this.handleResponse(message, response, wallet)) return;
|
if (await this.handleResponse(message, response, wallet)) return;
|
||||||
return message.channel.createMessage({ embed: {
|
return message.channel.createMessage({ embed: {
|
||||||
|
color: config.embedColor,
|
||||||
description: `You have **${wallet.result.available}** LBC available.\n\n` +
|
description: `You have **${wallet.result.available}** LBC available.\n\n` +
|
||||||
`Reserved in Supports: ${wallet.result.reserved_subtotals.supports} LBC\n` +
|
`Reserved in Supports: ${wallet.result.reserved_subtotals.supports} LBC\n` +
|
||||||
`Total: ${wallet.result.total} LBC` +
|
`Total: ${wallet.result.total} LBC` +
|
||||||
|
|
|
@ -47,7 +47,7 @@ module.exports = class Supports extends Command {
|
||||||
const paginator = new GenericPager(this.client, message, {
|
const paginator = new GenericPager(this.client, message, {
|
||||||
items: supports,
|
items: supports,
|
||||||
header: `All supports for <@${discordID || message.author.id}>${givenClaim ? ` on claim \`${givenClaim}\`` : ''}`, itemTitle: 'Supports',
|
header: `All supports for <@${discordID || message.author.id}>${givenClaim ? ` on claim \`${givenClaim}\`` : ''}`, itemTitle: 'Supports',
|
||||||
display: item => `*lbry://*[${item.name}]()#\`${item.claim_id}\` (${item.amount} LBC)`
|
display: item => `*lbry://**${item.name}***#\`${item.claim_id}\` (${item.amount} LBC)`
|
||||||
});
|
});
|
||||||
return paginator.start(message.channel.id, message.author.id);
|
return paginator.start(message.channel.id, message.author.id);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue