forked from Supositware/Haha-Yes
Show version of discord.js and discord-akairo
This commit is contained in:
parent
29a4b7bb73
commit
eb3e277c4a
1 changed files with 5 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
||||||
const { Command } = require('discord-akairo');
|
const { Command } = require('discord-akairo');
|
||||||
const { MessageEmbed } = require('discord.js');
|
const akairoVersion = require('discord-akairo').version;
|
||||||
|
const { MessageEmbed, version } = require('discord.js');
|
||||||
|
|
||||||
class StatsCommand extends Command {
|
class StatsCommand extends Command {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
@ -33,7 +34,9 @@ class StatsCommand extends Command {
|
||||||
.addField('Users', this.client.users.size, true)
|
.addField('Users', this.client.users.size, true)
|
||||||
.addField('Uptime', uptime, true)
|
.addField('Uptime', uptime, true)
|
||||||
.addField('Ram usage', `${Math.round(used * 100) / 100} MB`, true)
|
.addField('Ram usage', `${Math.round(used * 100) / 100} MB`, true)
|
||||||
.addField('Nodejs version', process.version)
|
.addField('Nodejs version', process.version, true)
|
||||||
|
.addField('Discord.js version', version, true)
|
||||||
|
.addField('Discord-Akairo version', akairoVersion, true)
|
||||||
.setTimestamp();
|
.setTimestamp();
|
||||||
|
|
||||||
return message.channel.send(statsEmbed);
|
return message.channel.send(statsEmbed);
|
||||||
|
|
Loading…
Reference in a new issue