mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-07-07 11:07:19 +00:00
chore: esm imports
This will make merging this into 'next' much easier.
This commit is contained in:
parent
1f0c7a4349
commit
45e3fe2ef0
798 changed files with 3633 additions and 3633 deletions
|
@ -1,27 +1,27 @@
|
|||
import { Snowflake, TextChannel } from "discord.js";
|
||||
import { globalPlugin } from "knub";
|
||||
import { AllowedGuilds } from "../../data/AllowedGuilds";
|
||||
import { ApiPermissionAssignments } from "../../data/ApiPermissionAssignments";
|
||||
import { Configs } from "../../data/Configs";
|
||||
import { GuildArchives } from "../../data/GuildArchives";
|
||||
import { getActiveReload, resetActiveReload } from "./activeReload";
|
||||
import { AddDashboardUserCmd } from "./commands/AddDashboardUserCmd";
|
||||
import { AddServerFromInviteCmd } from "./commands/AddServerFromInviteCmd";
|
||||
import { AllowServerCmd } from "./commands/AllowServerCmd";
|
||||
import { ChannelToServerCmd } from "./commands/ChannelToServerCmd";
|
||||
import { DisallowServerCmd } from "./commands/DisallowServerCmd";
|
||||
import { EligibleCmd } from "./commands/EligibleCmd";
|
||||
import { LeaveServerCmd } from "./commands/LeaveServerCmd";
|
||||
import { ListDashboardPermsCmd } from "./commands/ListDashboardPermsCmd";
|
||||
import { ListDashboardUsersCmd } from "./commands/ListDashboardUsersCmd";
|
||||
import { ProfilerDataCmd } from "./commands/ProfilerDataCmd";
|
||||
import { RateLimitPerformanceCmd } from "./commands/RateLimitPerformanceCmd";
|
||||
import { ReloadGlobalPluginsCmd } from "./commands/ReloadGlobalPluginsCmd";
|
||||
import { ReloadServerCmd } from "./commands/ReloadServerCmd";
|
||||
import { RemoveDashboardUserCmd } from "./commands/RemoveDashboardUserCmd";
|
||||
import { RestPerformanceCmd } from "./commands/RestPerformanceCmd";
|
||||
import { ServersCmd } from "./commands/ServersCmd";
|
||||
import { BotControlPluginType, zBotControlConfig } from "./types";
|
||||
import { AllowedGuilds } from "../../data/AllowedGuilds.js";
|
||||
import { ApiPermissionAssignments } from "../../data/ApiPermissionAssignments.js";
|
||||
import { Configs } from "../../data/Configs.js";
|
||||
import { GuildArchives } from "../../data/GuildArchives.js";
|
||||
import { getActiveReload, resetActiveReload } from "./activeReload.js";
|
||||
import { AddDashboardUserCmd } from "./commands/AddDashboardUserCmd.js";
|
||||
import { AddServerFromInviteCmd } from "./commands/AddServerFromInviteCmd.js";
|
||||
import { AllowServerCmd } from "./commands/AllowServerCmd.js";
|
||||
import { ChannelToServerCmd } from "./commands/ChannelToServerCmd.js";
|
||||
import { DisallowServerCmd } from "./commands/DisallowServerCmd.js";
|
||||
import { EligibleCmd } from "./commands/EligibleCmd.js";
|
||||
import { LeaveServerCmd } from "./commands/LeaveServerCmd.js";
|
||||
import { ListDashboardPermsCmd } from "./commands/ListDashboardPermsCmd.js";
|
||||
import { ListDashboardUsersCmd } from "./commands/ListDashboardUsersCmd.js";
|
||||
import { ProfilerDataCmd } from "./commands/ProfilerDataCmd.js";
|
||||
import { RateLimitPerformanceCmd } from "./commands/RateLimitPerformanceCmd.js";
|
||||
import { ReloadGlobalPluginsCmd } from "./commands/ReloadGlobalPluginsCmd.js";
|
||||
import { ReloadServerCmd } from "./commands/ReloadServerCmd.js";
|
||||
import { RemoveDashboardUserCmd } from "./commands/RemoveDashboardUserCmd.js";
|
||||
import { RestPerformanceCmd } from "./commands/RestPerformanceCmd.js";
|
||||
import { ServersCmd } from "./commands/ServersCmd.js";
|
||||
import { BotControlPluginType, zBotControlConfig } from "./types.js";
|
||||
|
||||
const defaultOptions = {
|
||||
config: {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { ApiPermissions } from "@zeppelinbot/shared";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { isStaffPreFilter } from "../../../pluginUtils";
|
||||
import { renderUsername } from "../../../utils";
|
||||
import { botControlCmd } from "../types";
|
||||
import { ApiPermissions } from "@zeppelinbot/shared.js";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes.js";
|
||||
import { isStaffPreFilter } from "../../../pluginUtils.js";
|
||||
import { renderUsername } from "../../../utils.js";
|
||||
import { botControlCmd } from "../types.js";
|
||||
|
||||
export const AddDashboardUserCmd = botControlCmd({
|
||||
trigger: ["add_dashboard_user"],
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import { ApiPermissions } from "@zeppelinbot/shared";
|
||||
import { ApiPermissions } from "@zeppelinbot/shared.js";
|
||||
import moment from "moment-timezone";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { DBDateFormat, isGuildInvite, resolveInvite } from "../../../utils";
|
||||
import { isEligible } from "../functions/isEligible";
|
||||
import { botControlCmd } from "../types";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes.js";
|
||||
import { DBDateFormat, isGuildInvite, resolveInvite } from "../../../utils.js";
|
||||
import { isEligible } from "../functions/isEligible.js";
|
||||
import { botControlCmd } from "../types.js";
|
||||
|
||||
export const AddServerFromInviteCmd = botControlCmd({
|
||||
trigger: ["add_server_from_invite", "allow_server_from_invite", "adv"],
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import { ApiPermissions } from "@zeppelinbot/shared";
|
||||
import { ApiPermissions } from "@zeppelinbot/shared.js";
|
||||
import moment from "moment-timezone";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { isStaffPreFilter } from "../../../pluginUtils";
|
||||
import { DBDateFormat, isSnowflake } from "../../../utils";
|
||||
import { botControlCmd } from "../types";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes.js";
|
||||
import { isStaffPreFilter } from "../../../pluginUtils.js";
|
||||
import { DBDateFormat, isSnowflake } from "../../../utils.js";
|
||||
import { botControlCmd } from "../types.js";
|
||||
|
||||
export const AllowServerCmd = botControlCmd({
|
||||
trigger: ["allow_server", "allowserver", "add_server", "addserver"],
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { isStaffPreFilter } from "../../../pluginUtils";
|
||||
import { botControlCmd } from "../types";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes.js";
|
||||
import { isStaffPreFilter } from "../../../pluginUtils.js";
|
||||
import { botControlCmd } from "../types.js";
|
||||
|
||||
export const ChannelToServerCmd = botControlCmd({
|
||||
trigger: ["channel_to_server", "channel2server"],
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { Snowflake } from "discord.js";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { isStaffPreFilter } from "../../../pluginUtils";
|
||||
import { noop } from "../../../utils";
|
||||
import { botControlCmd } from "../types";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes.js";
|
||||
import { isStaffPreFilter } from "../../../pluginUtils.js";
|
||||
import { noop } from "../../../utils.js";
|
||||
import { botControlCmd } from "../types.js";
|
||||
|
||||
export const DisallowServerCmd = botControlCmd({
|
||||
trigger: ["disallow_server", "disallowserver", "remove_server", "removeserver"],
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { isGuildInvite, resolveInvite } from "../../../utils";
|
||||
import { isEligible } from "../functions/isEligible";
|
||||
import { botControlCmd } from "../types";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes.js";
|
||||
import { isGuildInvite, resolveInvite } from "../../../utils.js";
|
||||
import { isEligible } from "../functions/isEligible.js";
|
||||
import { botControlCmd } from "../types.js";
|
||||
|
||||
export const EligibleCmd = botControlCmd({
|
||||
trigger: ["eligible", "is_eligible", "iseligible"],
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { Snowflake } from "discord.js";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { isStaffPreFilter } from "../../../pluginUtils";
|
||||
import { botControlCmd } from "../types";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes.js";
|
||||
import { isStaffPreFilter } from "../../../pluginUtils.js";
|
||||
import { botControlCmd } from "../types.js";
|
||||
|
||||
export const LeaveServerCmd = botControlCmd({
|
||||
trigger: ["leave_server", "leave_guild"],
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { AllowedGuild } from "../../../data/entities/AllowedGuild";
|
||||
import { ApiPermissionAssignment } from "../../../data/entities/ApiPermissionAssignment";
|
||||
import { renderUsername, resolveUser } from "../../../utils";
|
||||
import { botControlCmd } from "../types";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes.js";
|
||||
import { AllowedGuild } from "../../../data/entities/AllowedGuild.js";
|
||||
import { ApiPermissionAssignment } from "../../../data/entities/ApiPermissionAssignment.js";
|
||||
import { renderUsername, resolveUser } from "../../../utils.js";
|
||||
import { botControlCmd } from "../types.js";
|
||||
|
||||
export const ListDashboardPermsCmd = botControlCmd({
|
||||
trigger: ["list_dashboard_permissions", "list_dashboard_perms", "list_dash_permissions", "list_dash_perms"],
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { renderUsername, resolveUser } from "../../../utils";
|
||||
import { botControlCmd } from "../types";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes.js";
|
||||
import { renderUsername, resolveUser } from "../../../utils.js";
|
||||
import { botControlCmd } from "../types.js";
|
||||
|
||||
export const ListDashboardUsersCmd = botControlCmd({
|
||||
trigger: ["list_dashboard_users"],
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import moment from "moment-timezone";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { GuildArchives } from "../../../data/GuildArchives";
|
||||
import { getBaseUrl } from "../../../pluginUtils";
|
||||
import { sorter } from "../../../utils";
|
||||
import { botControlCmd } from "../types";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes.js";
|
||||
import { GuildArchives } from "../../../data/GuildArchives.js";
|
||||
import { getBaseUrl } from "../../../pluginUtils.js";
|
||||
import { sorter } from "../../../utils.js";
|
||||
import { botControlCmd } from "../types.js";
|
||||
|
||||
const sortProps = {
|
||||
totalTime: "TOTAL TIME",
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import moment from "moment-timezone";
|
||||
import { GuildArchives } from "../../../data/GuildArchives";
|
||||
import { getBaseUrl } from "../../../pluginUtils";
|
||||
import { getRateLimitStats } from "../../../rateLimitStats";
|
||||
import { botControlCmd } from "../types";
|
||||
import { GuildArchives } from "../../../data/GuildArchives.js";
|
||||
import { getBaseUrl } from "../../../pluginUtils.js";
|
||||
import { getRateLimitStats } from "../../../rateLimitStats.js";
|
||||
import { botControlCmd } from "../types.js";
|
||||
|
||||
export const RateLimitPerformanceCmd = botControlCmd({
|
||||
trigger: ["rate_limit_performance"],
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { isStaffPreFilter } from "../../../pluginUtils";
|
||||
import { getActiveReload, setActiveReload } from "../activeReload";
|
||||
import { botControlCmd } from "../types";
|
||||
import { isStaffPreFilter } from "../../../pluginUtils.js";
|
||||
import { getActiveReload, setActiveReload } from "../activeReload.js";
|
||||
import { botControlCmd } from "../types.js";
|
||||
|
||||
export const ReloadGlobalPluginsCmd = botControlCmd({
|
||||
trigger: "bot_reload_global_plugins",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { Snowflake } from "discord.js";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { isStaffPreFilter } from "../../../pluginUtils";
|
||||
import { botControlCmd } from "../types";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes.js";
|
||||
import { isStaffPreFilter } from "../../../pluginUtils.js";
|
||||
import { botControlCmd } from "../types.js";
|
||||
|
||||
export const ReloadServerCmd = botControlCmd({
|
||||
trigger: ["reload_server", "reload_guild"],
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { isStaffPreFilter } from "../../../pluginUtils";
|
||||
import { renderUsername } from "../../../utils";
|
||||
import { botControlCmd } from "../types";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes.js";
|
||||
import { isStaffPreFilter } from "../../../pluginUtils.js";
|
||||
import { renderUsername } from "../../../utils.js";
|
||||
import { botControlCmd } from "../types.js";
|
||||
|
||||
export const RemoveDashboardUserCmd = botControlCmd({
|
||||
trigger: ["remove_dashboard_user"],
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { getTopRestCallStats } from "../../../restCallStats";
|
||||
import { createChunkedMessage } from "../../../utils";
|
||||
import { botControlCmd } from "../types";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes.js";
|
||||
import { getTopRestCallStats } from "../../../restCallStats.js";
|
||||
import { createChunkedMessage } from "../../../utils.js";
|
||||
import { botControlCmd } from "../types.js";
|
||||
|
||||
const leadingPathRegex = /(?<=\().+\/backend\//g;
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import escapeStringRegexp from "escape-string-regexp";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { isStaffPreFilter } from "../../../pluginUtils";
|
||||
import { createChunkedMessage, getUser, renderUsername, sorter } from "../../../utils";
|
||||
import { botControlCmd } from "../types";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes.js";
|
||||
import { isStaffPreFilter } from "../../../pluginUtils.js";
|
||||
import { createChunkedMessage, getUser, renderUsername, sorter } from "../../../utils.js";
|
||||
import { botControlCmd } from "../types.js";
|
||||
|
||||
export const ServersCmd = botControlCmd({
|
||||
trigger: ["servers", "guilds"],
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { User } from "discord.js";
|
||||
import { GlobalPluginData } from "knub";
|
||||
import { GuildInvite } from "../../../utils";
|
||||
import { BotControlPluginType } from "../types";
|
||||
import { GuildInvite } from "../../../utils.js";
|
||||
import { BotControlPluginType } from "../types.js";
|
||||
|
||||
const REQUIRED_MEMBER_COUNT = 5000;
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { BasePluginType, globalPluginEventListener, globalPluginMessageCommand } from "knub";
|
||||
import z from "zod";
|
||||
import { AllowedGuilds } from "../../data/AllowedGuilds";
|
||||
import { ApiPermissionAssignments } from "../../data/ApiPermissionAssignments";
|
||||
import { Configs } from "../../data/Configs";
|
||||
import { GuildArchives } from "../../data/GuildArchives";
|
||||
import { zBoundedCharacters } from "../../utils";
|
||||
import { AllowedGuilds } from "../../data/AllowedGuilds.js";
|
||||
import { ApiPermissionAssignments } from "../../data/ApiPermissionAssignments.js";
|
||||
import { Configs } from "../../data/Configs.js";
|
||||
import { GuildArchives } from "../../data/GuildArchives.js";
|
||||
import { zBoundedCharacters } from "../../utils.js";
|
||||
|
||||
export const zBotControlConfig = z.strictObject({
|
||||
can_use: z.boolean(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue