From e8fc08d83a61ad2bd7af679a09eb767e932b3a43 Mon Sep 17 00:00:00 2001 From: murm Date: Fri, 17 Mar 2023 02:20:42 -0400 Subject: [PATCH] html-ified and re-formatted more cmds --- commands/general/help.js | 2 +- commands/general/info.js | 43 +------------------------------------- commands/general/reload.js | 2 +- 3 files changed, 3 insertions(+), 44 deletions(-) diff --git a/commands/general/help.js b/commands/general/help.js index 859442b..20ac6e8 100644 --- a/commands/general/help.js +++ b/commands/general/help.js @@ -9,7 +9,7 @@ import Command from "../../classes/command.js"; class HelpCommand extends Command { async run() { - return "https://esmbot.net/help.html" + return { html: "

There are no mrmBot Docs Yet

In the meantime, please refer to https://esmbot.net/help.html" }; } diff --git a/commands/general/info.js b/commands/general/info.js index 746a11e..33ac39d 100644 --- a/commands/general/info.js +++ b/commands/general/info.js @@ -5,49 +5,8 @@ import { getServers } from "../../utils/misc.js"; class InfoCommand extends Command { async run() { - let owner = this.client.users.get(process.env.OWNER.split(",")[0]); - if (!owner) owner = await this.client.rest.users.get(process.env.OWNER.split(",")[0]); - const servers = await getServers(this.client); // await this.acknowledge(); - return { - embeds: [{ - color: 16711680, - author: { - name: "esmBot Info/Credits", - iconURL: 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 (${process.env.GIT_REV})` : ""}` - }, - { - name: "📝 Credits:", - value: "Bot by **[Essem](https://essem.space)** and **[various contributors](https://github.com/esmBot/esmBot/graphs/contributors)**\nLogo by **[MintBurrow](https://twitter.com/MintBurrow)**" - }, - { - name: "đŸ’Ŧ Total Servers:", - value: servers ? servers : `${this.client.guilds.size} (for this process only)` - }, - { - name: "✅ Official Server:", - value: "[Click here!](https://esmbot.net/support)" - }, - { - name: "đŸ’ģ Source Code:", - value: "[Click here!](https://github.com/esmBot/esmBot)" - }, - { - name: "🛡ī¸ Privacy Policy:", - value: "[Click here!](https://esmbot.net/privacy.html)" - }, - { - name: "🐘 Mastodon:", - value: "[Click here!](https://wetdry.world/@esmBot)" - } - ] - }] - }; + return { html: `

mrmBot Info/Credits

This instance is managed by ${process.env.OWNER.split(",")[0]}.
v${version}-mrm (${process.env.GIT_REV})
Bot by Essem and other contributors.
Fork by Murm.` }; } static description = "Gets some info and credits about me"; diff --git a/commands/general/reload.js b/commands/general/reload.js index 5f382cd..140bec4 100644 --- a/commands/general/reload.js +++ b/commands/general/reload.js @@ -22,7 +22,7 @@ class ReloadCommand extends Command { } }); } - return `The command \`${commandName}\` has been reloaded.`; + return{ html: `The command ${commandName} has been reloaded.` }; } static flags = [{