chore: pretty information command

This commit is contained in:
Siwoo Jeon 2024-09-29 23:00:35 +09:00
parent aa8dc685ef
commit 1b29cc2336
Signed by: migan
GPG key ID: 036E9A8C5E8E48DA
2 changed files with 13 additions and 11 deletions

View file

@ -23,7 +23,7 @@ container.version = version
container.database = new PrismaClient() container.database = new PrismaClient()
container.dokdoAliases = ['dokdo', 'dok', 'Dokdo', 'Dok', '테스트'] container.dokdoAliases = ['dokdo', 'dok', 'Dokdo', 'Dok', '테스트']
container.chatBot = new ChatBot(container.database) container.chatBot = new ChatBot(container.database)
container.lastUpdated = new Date('2024-09-28') container.lastUpdated = new Date('2024-09-29')
if (release.startsWith('e')) { if (release.startsWith('e')) {
container.channel = 'EXPERIMENTAL' container.channel = 'EXPERIMENTAL'

View file

@ -20,33 +20,35 @@ class InformationCommand extends Command {
fields: [ fields: [
{ {
name: '구동ㅎ환경', name: '구동ㅎ환경',
value: `${platform()} ${arch()}`, value: `\`${platform()} ${arch()}\``,
inline: false, inline: false,
}, },
{ {
name: '버ㅈ전', name: '버ㅈ전',
value: this.container.version, value: `\`${this.container.version}\``,
inline: true, inline: true,
}, },
{ {
name: '채ㄴ널', name: '채ㄴ널',
value: this.container.channel.toLowerCase(), value: `\`${this.container.channel.toLowerCase()}\``,
inline: true, inline: true,
}, },
{ {
name: '최근 업ㄷ데이트 날짜', name: '최근 업ㄷ데이트 날짜',
value: this.container.lastUpdated.toLocaleDateString('ko', { value: `\`${this.container.lastUpdated.toLocaleDateString('ko', {
dateStyle: 'long', dateStyle: 'long',
}), })}\``,
inline: true, inline: true,
}, },
{ {
name: '개ㅂ발자', name: '개ㅂ발자',
value: ( value: `\`${
(
await this.container.client.users.fetch( await this.container.client.users.fetch(
this.container.config.bot.owner_ID, this.container.config.bot.owner_ID,
) )
).username, ).username
}\``,
inline: false, inline: false,
}, },
], ],