Add instance owner info to stats/info commands
This commit is contained in:
parent
da8c676320
commit
b7a847b612
2 changed files with 4 additions and 0 deletions
|
@ -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" : ""}`
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue