v3.0 #145

Merged
Vylpes merged 44 commits from develop into main 2022-04-24 14:46:37 +01:00
Showing only changes of commit ba51cbb28c - Show all commits

View file

@ -1,5 +1,5 @@
import { Command, ICommandContext } from "vylbot-core";
import { MessageEmbed } from "discord.js";
import PublicEmbed from "../helpers/PublicEmbed";
export default class About extends Command {
constructor() {
@ -8,15 +8,12 @@ export default class About extends Command {
}
public override execute(context: ICommandContext) {
const embed = new MessageEmbed()
.setTitle("About")
.setColor(process.env.EMBED_COLOUR!)
.setDescription("About the bot")
const embed = new PublicEmbed(context, "About", "")
.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);
embed.SendToCurrentChannel();
}
}