mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 02:15:10 +02:00
Remove Shard-Specific Data from Info
This commit is contained in:
@@ -29,15 +29,15 @@ module.exports = class InfoCommand extends Command {
|
|||||||
Created ${moment.duration(Date.now() - this.client.user.createdTimestamp).format('y[ years], M[ months], w[ weeks, and ]d[ days]')} ago!
|
Created ${moment.duration(Date.now() - this.client.user.createdTimestamp).format('y[ years], M[ months], w[ weeks, and ]d[ days]')} ago!
|
||||||
`)
|
`)
|
||||||
.addField('Servers',
|
.addField('Servers',
|
||||||
`${this.client.guilds.size} / ${guilds.reduce((prev, val) => prev + val, 0)}`, true)
|
guilds.reduce((prev, val) => prev + val, 0), true)
|
||||||
.addField('Shards',
|
.addField('Shards',
|
||||||
`${this.client.options.shardCount} (${this.client.shard.id})`, true)
|
this.client.options.shardCount, true)
|
||||||
.addField('Commands',
|
.addField('Commands',
|
||||||
this.client.registry.commands.size, true)
|
this.client.registry.commands.size, true)
|
||||||
.addField('Source Code',
|
.addField('Source Code',
|
||||||
'[View Here](https://github.com/dragonfire535/xiaobot)', true)
|
'[View Here](https://github.com/dragonfire535/xiaobot)', true)
|
||||||
.addField('Memory Usage',
|
.addField('Memory Usage',
|
||||||
`${Math.round(process.memoryUsage().heapUsed / 1024 / 1024)}MB / ${memory.reduce((prev, val) => prev + val, 0)}MB`, true)
|
`${memory.reduce((prev, val) => prev + val, 0)}MB`, true)
|
||||||
.addField('Uptime',
|
.addField('Uptime',
|
||||||
moment.duration(this.client.uptime).format('d[d]h[h]m[m]s[s]'), true)
|
moment.duration(this.client.uptime).format('d[d]h[h]m[m]s[s]'), true)
|
||||||
.addField('Version',
|
.addField('Version',
|
||||||
|
|||||||
Reference in New Issue
Block a user