2022-04-24 14:46:37 +01:00
|
|
|
import { CoreClient } from "./client/client";
|
2022-10-09 15:23:25 +01:00
|
|
|
import { EventType } from "./constants/EventType";
|
2022-04-24 14:46:37 +01:00
|
|
|
|
|
|
|
// Command Imports
|
|
|
|
import About from "./commands/about";
|
2022-09-05 18:10:04 +01:00
|
|
|
import Audits from "./commands/audits";
|
2022-04-24 14:46:37 +01:00
|
|
|
import Ban from "./commands/ban";
|
2022-10-09 15:23:25 +01:00
|
|
|
import Bunny from "./commands/bunny";
|
2022-04-24 14:46:37 +01:00
|
|
|
import Clear from "./commands/clear";
|
|
|
|
import Code from "./commands/code";
|
|
|
|
import Config from "./commands/config";
|
|
|
|
import Disable from "./commands/disable";
|
2022-07-16 16:12:55 +01:00
|
|
|
import Ignore from "./commands/ignore";
|
2022-04-24 14:46:37 +01:00
|
|
|
import Kick from "./commands/kick";
|
|
|
|
import Mute from "./commands/mute";
|
2023-07-14 16:10:39 +01:00
|
|
|
import Poll from "./commands/poll";
|
2022-09-18 11:57:22 +01:00
|
|
|
import Role from "./commands/Role/role";
|
|
|
|
import ConfigRole from "./commands/Role/config";
|
2022-04-24 14:46:37 +01:00
|
|
|
import Rules from "./commands/rules";
|
|
|
|
import Setup from "./commands/setup";
|
2023-06-16 18:01:45 +01:00
|
|
|
import Timeout from "./commands/timeout";
|
2022-04-24 14:46:37 +01:00
|
|
|
import Unmute from "./commands/unmute";
|
|
|
|
import Warn from "./commands/warn";
|
|
|
|
|
|
|
|
// Command Imports: MankBot
|
|
|
|
import Entry from "./commands/501231711271780357/entry";
|
2022-09-18 11:57:22 +01:00
|
|
|
import Lobby from "./commands/501231711271780357/Lobby/lobby";
|
|
|
|
import AddLobby from "./commands/501231711271780357/Lobby/add";
|
|
|
|
import RemoveLobby from "./commands/501231711271780357/Lobby/remove";
|
2022-11-12 22:06:41 +00:00
|
|
|
import ListLobby from "./commands/501231711271780357/Lobby/list";
|
2022-04-24 14:46:37 +01:00
|
|
|
|
|
|
|
// Event Imports
|
2022-10-09 15:23:25 +01:00
|
|
|
import GuildMemberAdd from "./events/MemberEvents/GuildMemberAdd";
|
|
|
|
import GuildMemberRemove from "./events/MemberEvents/GuildMemberRemove";
|
|
|
|
import GuildMemberUpdate from "./events/MemberEvents/GuildMemberUpdate";
|
|
|
|
import MessageDelete from "./events/MessageEvents/MessageDelete";
|
|
|
|
import MessageUpdate from "./events/MessageEvents/MessageUpdate";
|
|
|
|
import MessageCreate from "./events/MessageEvents/MessageCreate";
|
2022-04-24 14:46:37 +01:00
|
|
|
|
2024-01-26 20:59:05 +00:00
|
|
|
// Button Event Imports
|
|
|
|
import Verify from "./buttonEvents/verify";
|
|
|
|
|
2022-04-24 14:46:37 +01:00
|
|
|
export default class Registry {
|
|
|
|
public static RegisterCommands() {
|
|
|
|
CoreClient.RegisterCommand("about", new About());
|
2023-06-16 18:01:45 +01:00
|
|
|
CoreClient.RegisterCommand("audits", new Audits());
|
2022-04-24 14:46:37 +01:00
|
|
|
CoreClient.RegisterCommand("ban", new Ban());
|
2022-05-12 18:04:34 +01:00
|
|
|
CoreClient.RegisterCommand("bunny", new Bunny());
|
2022-04-24 14:46:37 +01:00
|
|
|
CoreClient.RegisterCommand("clear", new Clear());
|
2022-07-16 16:12:55 +01:00
|
|
|
CoreClient.RegisterCommand("code", new Code());
|
|
|
|
CoreClient.RegisterCommand("config", new Config());
|
|
|
|
CoreClient.RegisterCommand("disable", new Disable());
|
|
|
|
CoreClient.RegisterCommand("ignore", new Ignore());
|
2022-04-24 14:46:37 +01:00
|
|
|
CoreClient.RegisterCommand("kick", new Kick());
|
|
|
|
CoreClient.RegisterCommand("mute", new Mute());
|
2023-07-14 16:10:39 +01:00
|
|
|
CoreClient.RegisterCommand("poll", new Poll());
|
2022-04-24 14:46:37 +01:00
|
|
|
CoreClient.RegisterCommand("rules", new Rules());
|
2023-06-16 18:01:45 +01:00
|
|
|
CoreClient.RegisterCommand("setup", new Setup());
|
|
|
|
CoreClient.RegisterCommand("timeout", new Timeout());
|
2022-04-24 14:46:37 +01:00
|
|
|
CoreClient.RegisterCommand("unmute", new Unmute());
|
|
|
|
CoreClient.RegisterCommand("warn", new Warn());
|
|
|
|
|
2022-09-18 11:57:22 +01:00
|
|
|
CoreClient.RegisterCommand("role", new Role());
|
|
|
|
CoreClient.RegisterCommand("configrole", new ConfigRole());
|
|
|
|
|
2022-04-24 14:46:37 +01:00
|
|
|
// Exclusive Commands: MankBot
|
|
|
|
CoreClient.RegisterCommand("lobby", new Lobby(), "501231711271780357");
|
2022-09-18 11:57:22 +01:00
|
|
|
CoreClient.RegisterCommand("lobbyAdd", new AddLobby(), "501231711271780357");
|
|
|
|
CoreClient.RegisterCommand("lobbyRemove", new RemoveLobby(), "501231711271780357");
|
2022-11-12 22:06:41 +00:00
|
|
|
CoreClient.RegisterCommand("listlobby", new ListLobby(), "501231711271780357");
|
2022-04-24 14:46:37 +01:00
|
|
|
CoreClient.RegisterCommand("entry", new Entry(), "501231711271780357");
|
|
|
|
|
|
|
|
// Add Exclusive Commands to Test Server
|
|
|
|
CoreClient.RegisterCommand("lobby", new Lobby(), "442730357897429002");
|
2022-09-18 11:57:22 +01:00
|
|
|
CoreClient.RegisterCommand("addlobby", new AddLobby(), "442730357897429002");
|
|
|
|
CoreClient.RegisterCommand("removelobby", new RemoveLobby(), "442730357897429002");
|
2022-11-12 22:06:41 +00:00
|
|
|
CoreClient.RegisterCommand("listlobby", new ListLobby(), "442730357897429002");
|
2022-04-24 14:46:37 +01:00
|
|
|
CoreClient.RegisterCommand("entry", new Entry(), "442730357897429002");
|
|
|
|
}
|
|
|
|
|
|
|
|
public static RegisterEvents() {
|
2022-10-09 15:23:25 +01:00
|
|
|
CoreClient.RegisterEvent(EventType.GuildMemberAdd, GuildMemberAdd);
|
|
|
|
CoreClient.RegisterEvent(EventType.GuildMemberRemove, GuildMemberRemove);
|
|
|
|
CoreClient.RegisterEvent(EventType.GuildMemberUpdate, GuildMemberUpdate);
|
|
|
|
|
|
|
|
CoreClient.RegisterEvent(EventType.MessageDelete, MessageDelete);
|
|
|
|
CoreClient.RegisterEvent(EventType.MessageUpdate, MessageUpdate);
|
|
|
|
CoreClient.RegisterEvent(EventType.MessageCreate, MessageCreate);
|
2022-04-24 14:46:37 +01:00
|
|
|
}
|
2024-01-26 20:59:05 +00:00
|
|
|
|
|
|
|
public static RegisterButtonEvents() {
|
|
|
|
CoreClient.RegisterButtonEvent("verify", new Verify());
|
|
|
|
}
|
2022-04-24 14:46:37 +01:00
|
|
|
}
|