v3.1.0 #317

Merged
Vylpes merged 76 commits from develop into main 2023-07-08 13:30:22 +01:00
3 changed files with 30 additions and 2 deletions
Showing only changes of commit 4d01f0b34a - Show all commits

View file

@ -7,7 +7,7 @@
# any secret values.
BOT_TOKEN=
BOT_VER=3.0.4
BOT_VER=3.1
BOT_AUTHOR=Vylpes
BOT_DATE=06 Jul 2022
BOT_DATE=08 Aug 2022
BOT_OWNERID=147392775707426816

26
src/commands/say.ts Normal file
View file

@ -0,0 +1,26 @@
import { ICommandContext } from "../contracts/ICommandContext";
import ErrorEmbed from "../helpers/embeds/ErrorEmbed";
import { Command } from "../type/command";
export default class Say extends Command {
constructor() {
super();
super.Category = "Misc";
super.Roles = [
"moderator"
];
}
public override async execute(context: ICommandContext) {
const input = context.args.join(" ");
if (input.length == 0) {
const errorEmbed = new ErrorEmbed(context, "You must supply a message.");
await errorEmbed.SendToCurrentChannel();
return;
}
context.message.channel.send(input);
}
}

View file

@ -14,6 +14,7 @@ import Mute from "./commands/mute";
import Poll from "./commands/poll";
import Role from "./commands/role";
import Rules from "./commands/rules";
import Say from "./commands/say";
import Setup from "./commands/setup";
import Unmute from "./commands/unmute";
import Warn from "./commands/warn";
@ -46,6 +47,7 @@ export default class Registry {
CoreClient.RegisterCommand("unmute", new Unmute());
CoreClient.RegisterCommand("warn", new Warn());
CoreClient.RegisterCommand("setup", new Setup());
CoreClient.RegisterCommand("say", new Say());
// Exclusive Commands: MankBot
CoreClient.RegisterCommand("lobby", new Lobby(), "501231711271780357");