From e1e74515f3ad678ce58f4dd6960f68ee78c170da Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sun, 20 Sep 2020 15:24:33 -0400 Subject: [PATCH] updates to score --- src/commands/score.ts | 1 + src/intervals/score.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/score.ts b/src/commands/score.ts index 0de813e..5ceacdd 100644 --- a/src/commands/score.ts +++ b/src/commands/score.ts @@ -155,6 +155,7 @@ export default class Score extends Command { embed.setFooter(this.client.user.username, this.client.user.avatarURL); } if (args[1] === 'hard' && this.checkCustomPermissions(this.client.util.resolveMember(message.author.id, this.mainGuild), 6)) { + if (score.pin?.length > 0) embed.addField('PIN', score.pin.join('-'), true); await message.channel.createMessage({ embed }); await message.channel.createMessage('***===BEGIN ADDITIONAL INFORMATION===***'); await this.client.commands.get('whois').run(message, [user.id]); diff --git a/src/intervals/score.ts b/src/intervals/score.ts index 9b71836..fc88a5d 100644 --- a/src/intervals/score.ts +++ b/src/intervals/score.ts @@ -132,7 +132,7 @@ export default async function calculateScore(client: Client): Promise