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.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'

View file

@ -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,
},
],