From b7a847b61268f2d0a64630606a6ad6c16049ed4a Mon Sep 17 00:00:00 2001 From: TheEssem Date: Mon, 21 Jun 2021 17:12:17 -0500 Subject: [PATCH] Add instance owner info to stats/info commands --- commands/general/info.js | 2 ++ commands/general/stats.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/commands/general/info.js b/commands/general/info.js index 22bd7fe..933b36f 100644 --- a/commands/general/info.js +++ b/commands/general/info.js @@ -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" : ""}` diff --git a/commands/general/stats.js b/commands/general/stats.js index 605485d..ea5b40e 100644 --- a/commands/general/stats.js +++ b/commands/general/stats.js @@ -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",