mirror of
https://github.com/LBRYFoundation/curate.git
synced 2025-08-23 09:27:24 +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
|
||||
debug: false,
|
||||
// [number] The main embed color (#ffffff -> 0xffffff)
|
||||
embedColor: 0x429bce,
|
||||
embedColor: 0x15521c,
|
||||
// [string] curator_role_id
|
||||
curatorRoleID: "",
|
||||
// [string] admin_role_id
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
const Command = require('../../structures/Command');
|
||||
const config = require('config');
|
||||
|
||||
module.exports = class AdminBalance extends Command {
|
||||
get name() { return 'adminbalance'; }
|
||||
|
@ -13,6 +14,7 @@ module.exports = class AdminBalance extends Command {
|
|||
const wallet = await response.json();
|
||||
if (await this.handleResponse(message, response, wallet)) return;
|
||||
return message.channel.createMessage({ embed: {
|
||||
color: config.embedColor,
|
||||
description: `**Available:** ${wallet.result.available} LBC\n\n` +
|
||||
`Reserved in Supports: ${wallet.result.reserved_subtotals.supports} LBC\n` +
|
||||
`Total: ${wallet.result.total} LBC`
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
const Command = require('../../structures/Command');
|
||||
const Util = require('../../util');
|
||||
const config = require('config');
|
||||
|
||||
module.exports = class Balance extends Command {
|
||||
get name() { return 'balance'; }
|
||||
|
@ -15,6 +16,7 @@ module.exports = class Balance extends Command {
|
|||
const wallet = await response.json();
|
||||
if (await this.handleResponse(message, response, wallet)) return;
|
||||
return message.channel.createMessage({ embed: {
|
||||
color: config.embedColor,
|
||||
description: `You have **${wallet.result.available}** LBC available.\n\n` +
|
||||
`Reserved in Supports: ${wallet.result.reserved_subtotals.supports} LBC\n` +
|
||||
`Total: ${wallet.result.total} LBC` +
|
||||
|
|
|
@ -47,7 +47,7 @@ module.exports = class Supports extends Command {
|
|||
const paginator = new GenericPager(this.client, message, {
|
||||
items: 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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue