Feature/23 migrate to typescript #73

Merged
Vylpes merged 19 commits from feature/23-migrate-to-typescript into develop 2021-12-04 15:51:41 +00:00
Showing only changes of commit ba51cbb28c - Show all commits

View file

@ -1,5 +1,5 @@
VylpesTester commented 2021-12-03 17:26:31 +00:00 (Migrated from github.com)
Review

This should use the PublicEmbed class you made

This should use the `PublicEmbed` class you made
VylpesTester commented 2021-12-03 17:26:31 +00:00 (Migrated from github.com)
Review

This should use the PublicEmbed class you made

This should use the `PublicEmbed` class you made
import { Command, ICommandContext } from "vylbot-core";
import { MessageEmbed } from "discord.js";
VylpesTester commented 2021-12-03 17:26:31 +00:00 (Migrated from github.com)
Review

This should use the PublicEmbed class you made

This should use the `PublicEmbed` class you made
import PublicEmbed from "../helpers/PublicEmbed";
VylpesTester commented 2021-12-03 17:26:31 +00:00 (Migrated from github.com)
Review

This should use the PublicEmbed class you made

This should use the `PublicEmbed` class you made
export default class About extends Command {
constructor() {
@ -8,15 +8,12 @@ export default class About extends Command {
VylpesTester commented 2021-12-03 17:26:31 +00:00 (Migrated from github.com)
Review

This should use the PublicEmbed class you made

This should use the `PublicEmbed` class you made
VylpesTester commented 2021-12-03 17:26:31 +00:00 (Migrated from github.com)
Review

This should use the PublicEmbed class you made

This should use the `PublicEmbed` class you made
}
public override execute(context: ICommandContext) {
const embed = new MessageEmbed()
VylpesTester commented 2021-12-03 17:26:31 +00:00 (Migrated from github.com)
Review

This should use the PublicEmbed class you made

This should use the `PublicEmbed` class you made
.setTitle("About")
VylpesTester commented 2021-12-03 17:26:31 +00:00 (Migrated from github.com)
Review

This should use the PublicEmbed class you made

This should use the `PublicEmbed` class you made
.setColor(process.env.EMBED_COLOUR!)
VylpesTester commented 2021-12-03 17:26:31 +00:00 (Migrated from github.com)
Review

This should use the PublicEmbed class you made

This should use the `PublicEmbed` class you made
.setDescription("About the bot")
VylpesTester commented 2021-12-03 17:26:31 +00:00 (Migrated from github.com)
Review

This should use the PublicEmbed class you made

This should use the `PublicEmbed` class you made
const embed = new PublicEmbed(context, "About", "")
VylpesTester commented 2021-12-03 17:26:31 +00:00 (Migrated from github.com)
Review

This should use the PublicEmbed class you made

This should use the `PublicEmbed` class you made
.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);
VylpesTester commented 2021-12-03 17:26:31 +00:00 (Migrated from github.com)
Review

This should use the PublicEmbed class you made

This should use the `PublicEmbed` class you made
embed.SendToCurrentChannel();
VylpesTester commented 2021-12-03 17:26:31 +00:00 (Migrated from github.com)
Review

This should use the PublicEmbed class you made

This should use the `PublicEmbed` class you made
}
}