Migrate about command

This commit is contained in:
Ethan Lane 2021-11-28 14:25:00 +00:00
parent c7417cf7a5
commit bb433749f8
Signed by: Vylpes
GPG key ID: EED233CC06D12504
2 changed files with 22 additions and 45 deletions

22
src/commands/about.ts Normal file
View file

@ -0,0 +1,22 @@
import { Command, ICommandContext } from "vylbot-core";
import { MessageEmbed } from "discord.js";
export default class About extends Command {
constructor() {
super();
super._category = "General";
}
public override execute(context: ICommandContext) {
const embed = new MessageEmbed()
.setTitle("About")
.setColor(process.env.EMBED_COLOUR!)
.setDescription("About the bot")
.addField("Version", process.env.BOT_VER)
.addField("VylBot Core", process.env.CORE_VER)
.addField("Author", process.env.BOT_AUTHOR)
.addField("Date", process.env.BOT_DATE);
context.message.channel.send(embed);
}
}