Add instance owner info to stats/info commands

This commit is contained in:
TheEssem 2021-06-21 17:12:17 -05:00
parent da8c676320
commit b7a847b612
No known key found for this signature in database
GPG key ID: A3F9F02129092FCA
2 changed files with 4 additions and 0 deletions

View file

@ -4,6 +4,7 @@ const Command = require("../../classes/command.js");
class InfoCommand extends Command {
async run() {
const owner = this.client.users.get(process.env.OWNER);
return {
"embed": {
"color": 16711680,
@ -11,6 +12,7 @@ class InfoCommand extends Command {
"name": "esmBot Info/Credits",
"icon_url": this.client.user.avatarURL
},
"description": `This instance is managed by **${owner.username}#${owner.discriminator}**.`,
"fields": [{
"name": " Version:",
"value": `v${version}${process.env.NODE_ENV === "development" ? "-dev" : ""}`

View file

@ -9,12 +9,14 @@ class StatsCommand extends Command {
async run() {
const duration = day.duration(this.client.uptime).format(" D [days], H [hrs], m [mins], s [secs]");
const uptime = day.duration(process.uptime(), "seconds").format(" D [days], H [hrs], m [mins], s [secs]");
const owner = this.client.users.get(process.env.OWNER);
return {
embed: {
"author": {
"name": "esmBot Statistics",
"icon_url": this.client.user.avatarURL
},
"description": `This instance is managed by **${owner.username}#${owner.discriminator}**.`,
"color": 16711680,
"fields": [{
"name": "Version",