From 1b29cc2336ef137a4d22866b19ba8419fae08b80 Mon Sep 17 00:00:00 2001 From: Siwoo Jeon Date: Sun, 29 Sep 2024 23:00:35 +0900 Subject: [PATCH] chore: pretty information command --- src/Client.ts | 2 +- src/Commands/information.ts | 22 ++++++++++++---------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/src/Client.ts b/src/Client.ts index e80aeb5..c33d644 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -23,7 +23,7 @@ container.version = version container.database = new PrismaClient() container.dokdoAliases = ['dokdo', 'dok', 'Dokdo', 'Dok', '테스트'] container.chatBot = new ChatBot(container.database) -container.lastUpdated = new Date('2024-09-28') +container.lastUpdated = new Date('2024-09-29') if (release.startsWith('e')) { container.channel = 'EXPERIMENTAL' diff --git a/src/Commands/information.ts b/src/Commands/information.ts index 0bce5c6..be3c7c3 100644 --- a/src/Commands/information.ts +++ b/src/Commands/information.ts @@ -20,33 +20,35 @@ class InformationCommand extends Command { fields: [ { name: '구동ㅎ환경', - value: `${platform()} ${arch()}`, + value: `\`${platform()} ${arch()}\``, inline: false, }, { name: '버ㅈ전', - value: this.container.version, + value: `\`${this.container.version}\``, inline: true, }, { name: '채ㄴ널', - value: this.container.channel.toLowerCase(), + value: `\`${this.container.channel.toLowerCase()}\``, inline: true, }, { name: '최근 업ㄷ데이트 날짜', - value: this.container.lastUpdated.toLocaleDateString('ko', { + value: `\`${this.container.lastUpdated.toLocaleDateString('ko', { dateStyle: 'long', - }), + })}\``, inline: true, }, { name: '개ㅂ발자', - value: ( - await this.container.client.users.fetch( - this.container.config.bot.owner_ID, - ) - ).username, + value: `\`${ + ( + await this.container.client.users.fetch( + this.container.config.bot.owner_ID, + ) + ).username + }\``, inline: false, }, ],