Show version of discord.js and discord-akairo

This commit is contained in:
Loïc Bersier 2019-06-15 21:54:01 +02:00
parent 29a4b7bb73
commit eb3e277c4a

View file

@ -1,5 +1,6 @@
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 {
constructor() {
@ -33,7 +34,9 @@ class StatsCommand extends Command {
.addField('Users', this.client.users.size, true)
.addField('Uptime', uptime, 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();
return message.channel.send(statsEmbed);