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";
|
2024-10-18 18:04:49 +01:00
|
|
|
import Linkonly from "./commands/linkonly";
|
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";
|
2024-06-29 18:26:25 +01:00
|
|
|
import Say from "./commands/say";
|
2022-04-24 14:46:37 +01:00
|
|
|
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 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
|
|
|
|
2024-08-17 16:47:14 +01:00
|
|
|
// Command Imports: Potato Talk
|
|
|
|
import Moons from "./commands/304276391837302787/moons";
|
2024-10-29 10:29:31 +00:00
|
|
|
import MoonSet from "./commands/304276391837302787/moonset";
|
2024-08-17 16:47:14 +01:00
|
|
|
|
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";
|
2024-08-17 16:47:14 +01:00
|
|
|
import MoonsButtonEvent from "./buttonEvents/moons";
|
2024-01-26 20:59:05 +00:00
|
|
|
|
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());
|
2024-10-18 18:04:49 +01:00
|
|
|
CoreClient.RegisterCommand("linkonly", new Linkonly());
|
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());
|
2024-06-29 18:26:25 +01:00
|
|
|
CoreClient.RegisterCommand("say", new Say());
|
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("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");
|
|
|
|
|
2024-08-17 16:47:14 +01:00
|
|
|
// Exclusive Commands: Potato Talk
|
|
|
|
CoreClient.RegisterCommand("moons", new Moons(), "304276391837302787");
|
2024-10-29 10:29:31 +00:00
|
|
|
CoreClient.RegisterCommand("moonset", new MoonSet(), "304276391837302787");
|
2024-08-17 16:47:14 +01:00
|
|
|
|
2022-04-24 14:46:37 +01:00
|
|
|
// 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");
|
2024-08-17 16:47:14 +01:00
|
|
|
CoreClient.RegisterCommand("moons", new Moons(), "442730357897429002");
|
2024-10-29 10:29:31 +00:00
|
|
|
CoreClient.RegisterCommand("moonset", new MoonSet(), "442730357897429002");
|
2022-04-24 14:46:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
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());
|
2024-08-17 16:47:14 +01:00
|
|
|
CoreClient.RegisterButtonEvent("moons", new MoonsButtonEvent());
|
2024-01-26 20:59:05 +00:00
|
|
|
}
|
2024-06-29 18:26:25 +01:00
|
|
|
}
|