Skip to content

Commit

Permalink
Small tweaks, update embed color in embeds and default config
Browse files Browse the repository at this point in the history
  • Loading branch information
Coolguy3289 committed Aug 15, 2020
1 parent 3e65687 commit 124bddc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/_default.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/commands/admin/adminbalance.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const Command = require('../../structures/Command');
const config = require('config');

module.exports = class AdminBalance extends Command {
get name() { return 'adminbalance'; }
Expand All @@ -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`
Expand Down
2 changes: 2 additions & 0 deletions src/commands/curator/balance.js
Original file line number Diff line number Diff line change
@@ -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'; }
Expand All @@ -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` +
Expand Down
2 changes: 1 addition & 1 deletion src/commands/curator/supports.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 124bddc

Please sign in to comment.