html-ified and re-formatted more cmds

This commit is contained in:
murm 2023-03-17 02:20:42 -04:00
parent de714b78ff
commit e8fc08d83a
3 changed files with 3 additions and 44 deletions

View file

@ -9,7 +9,7 @@ import Command from "../../classes/command.js";
class HelpCommand extends Command { class HelpCommand extends Command {
async run() { async run() {
return "https://esmbot.net/help.html" return { html: "<h1>There are no mrmBot Docs Yet</h1>In the meantime, please refer to https://esmbot.net/help.html" };
} }

View file

@ -5,49 +5,8 @@ import { getServers } from "../../utils/misc.js";
class InfoCommand extends Command { class InfoCommand extends Command {
async run() { 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(); // await this.acknowledge();
return { return { html: `<h1>mrmBot Info/Credits</h1>This instance is managed by <b>${process.env.OWNER.split(",")[0]}</b>.<br>v${version}-mrm (${process.env.GIT_REV})<br>Bot by <a href="https://essem.space"><font color="#FF0000"><i>Essem</i></font></a> and <a href="https://github.com/esmBot/esmBot/graphs/contributors"><i>other contributors</i></a>.<br>Fork by <a href="https://murm.gay"><font color="#18FF00"><b>Murm</b></font></a>.` };
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)"
}
]
}]
};
} }
static description = "Gets some info and credits about me"; static description = "Gets some info and credits about me";

View file

@ -22,7 +22,7 @@ class ReloadCommand extends Command {
} }
}); });
} }
return `The command \`${commandName}\` has been reloaded.`; return{ html: `The command <code>${commandName}</code> has been reloaded.` };
} }
static flags = [{ static flags = [{