3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

chore: fix inconsistent import paths

This commit is contained in:
Dragory 2024-01-15 18:05:01 +00:00
parent 3db9090705
commit ac8926cdb8
No known key found for this signature in database
8 changed files with 10 additions and 10 deletions

View file

@ -1,6 +1,5 @@
import { Guild, Snowflake } from "discord.js"; import { Guild, Snowflake } from "discord.js";
import moment from "moment-timezone"; import moment from "moment-timezone";
import { isDefaultSticker } from "src/utils/isDefaultSticker";
import { Repository } from "typeorm"; import { Repository } from "typeorm";
import { TemplateSafeValueContainer, renderTemplate } from "../templateFormatter"; import { TemplateSafeValueContainer, renderTemplate } from "../templateFormatter";
import { renderUsername, trimLines } from "../utils"; import { renderUsername, trimLines } from "../utils";
@ -10,6 +9,7 @@ import { BaseGuildRepository } from "./BaseGuildRepository";
import { dataSource } from "./dataSource"; import { dataSource } from "./dataSource";
import { ArchiveEntry } from "./entities/ArchiveEntry"; import { ArchiveEntry } from "./entities/ArchiveEntry";
import { SavedMessage } from "./entities/SavedMessage"; import { SavedMessage } from "./entities/SavedMessage";
import { isDefaultSticker } from "../utils/isDefaultSticker";
const DEFAULT_EXPIRY_DAYS = 30; const DEFAULT_EXPIRY_DAYS = 30;

View file

@ -1,5 +1,4 @@
import { Snowflake } from "discord.js"; import { Snowflake } from "discord.js";
import { erisAllowedMentionsToDjsMentionOptions } from "src/utils/erisAllowedMentionsToDjsMentionOptions";
import z from "zod"; import z from "zod";
import { LogType } from "../../../data/LogType"; import { LogType } from "../../../data/LogType";
import { import {
@ -19,6 +18,7 @@ import {
zNullishToUndefined, zNullishToUndefined,
zSnowflake zSnowflake
} from "../../../utils"; } from "../../../utils";
import { erisAllowedMentionsToDjsMentionOptions } from "../../../utils/erisAllowedMentionsToDjsMentionOptions";
import { messageIsEmpty } from "../../../utils/messageIsEmpty"; import { messageIsEmpty } from "../../../utils/messageIsEmpty";
import { userToTemplateSafeUser } from "../../../utils/templateSafeObjects"; import { userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
import { InternalPosterPlugin } from "../../InternalPoster/InternalPosterPlugin"; import { InternalPosterPlugin } from "../../InternalPoster/InternalPosterPlugin";

View file

@ -1,14 +1,14 @@
import { ContextMenuCommandInteraction } from "discord.js"; import { ContextMenuCommandInteraction } from "discord.js";
import humanizeDuration from "humanize-duration"; import humanizeDuration from "humanize-duration";
import { GuildPluginData } from "knub"; import { GuildPluginData } from "knub";
import { canActOn } from "src/pluginUtils";
import { ModActionsPlugin } from "src/plugins/ModActions/ModActionsPlugin";
import { ERRORS, RecoverablePluginError } from "../../../RecoverablePluginError"; import { ERRORS, RecoverablePluginError } from "../../../RecoverablePluginError";
import { convertDelayStringToMS } from "../../../utils"; import { convertDelayStringToMS } from "../../../utils";
import { CaseArgs } from "../../Cases/types"; import { CaseArgs } from "../../Cases/types";
import { LogsPlugin } from "../../Logs/LogsPlugin"; import { LogsPlugin } from "../../Logs/LogsPlugin";
import { MutesPlugin } from "../../Mutes/MutesPlugin"; import { MutesPlugin } from "../../Mutes/MutesPlugin";
import { ContextMenuPluginType } from "../types"; import { ContextMenuPluginType } from "../types";
import { ModActionsPlugin } from "../../ModActions/ModActionsPlugin";
import { canActOn } from "../../../pluginUtils";
export async function muteAction( export async function muteAction(
pluginData: GuildPluginData<ContextMenuPluginType>, pluginData: GuildPluginData<ContextMenuPluginType>,

View file

@ -1,11 +1,11 @@
import { GuildTextBasedChannel, User } from "discord.js"; import { GuildTextBasedChannel, User } from "discord.js";
import { GuildPluginData } from "knub"; import { GuildPluginData } from "knub";
import { deactivateMentions, disableCodeBlocks } from "knub/helpers"; import { deactivateMentions, disableCodeBlocks } from "knub/helpers";
import { resolveChannelIds } from "src/utils/resolveChannelIds";
import { LogType } from "../../../data/LogType"; import { LogType } from "../../../data/LogType";
import { SavedMessage } from "../../../data/entities/SavedMessage"; import { SavedMessage } from "../../../data/entities/SavedMessage";
import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter"; import { createTypedTemplateSafeValueContainer } from "../../../templateFormatter";
import { UnknownUser } from "../../../utils"; import { UnknownUser } from "../../../utils";
import { resolveChannelIds } from "../../../utils/resolveChannelIds";
import { import {
channelToTemplateSafeChannel, channelToTemplateSafeChannel,
savedMessageToTemplateSafeSavedMessage, savedMessageToTemplateSafeSavedMessage,

View file

@ -2,8 +2,6 @@ import { Snowflake } from "discord.js";
import humanizeDuration from "humanize-duration"; import humanizeDuration from "humanize-duration";
import { GuildPluginData } from "knub"; import { GuildPluginData } from "knub";
import moment from "moment-timezone"; import moment from "moment-timezone";
import { LogType } from "src/data/LogType";
import { logger } from "src/logger";
import { CaseTypes } from "../../../data/CaseTypes"; import { CaseTypes } from "../../../data/CaseTypes";
import { Tempban } from "../../../data/entities/Tempban"; import { Tempban } from "../../../data/entities/Tempban";
import { resolveUser } from "../../../utils"; import { resolveUser } from "../../../utils";
@ -13,6 +11,8 @@ import { IgnoredEventType, ModActionsPluginType } from "../types";
import { formatReasonWithAttachments } from "./formatReasonWithAttachments"; import { formatReasonWithAttachments } from "./formatReasonWithAttachments";
import { ignoreEvent } from "./ignoreEvent"; import { ignoreEvent } from "./ignoreEvent";
import { isBanned } from "./isBanned"; import { isBanned } from "./isBanned";
import { LogType } from "../../../data/LogType";
import { logger } from "../../../logger";
export async function clearTempban(pluginData: GuildPluginData<ModActionsPluginType>, tempban: Tempban) { export async function clearTempban(pluginData: GuildPluginData<ModActionsPluginType>, tempban: Tempban) {
if (!(await isBanned(pluginData, tempban.user_id))) { if (!(await isBanned(pluginData, tempban.user_id))) {

View file

@ -1,4 +1,4 @@
import { trimPluginDescription } from "src/utils"; import { trimPluginDescription } from "../../utils";
import { TemplateFunction } from "./types"; import { TemplateFunction } from "./types";
export function generateTemplateMarkdown(definitions: TemplateFunction[]): string { export function generateTemplateMarkdown(definitions: TemplateFunction[]): string {

View file

@ -1,12 +1,12 @@
import { Snowflake, TextChannel } from "discord.js"; import { Snowflake, TextChannel } from "discord.js";
import { GuildPluginData } from "knub"; import { GuildPluginData } from "knub";
import { erisAllowedMentionsToDjsMentionOptions } from "src/utils/erisAllowedMentionsToDjsMentionOptions";
import { SavedMessage } from "../../../data/entities/SavedMessage"; import { SavedMessage } from "../../../data/entities/SavedMessage";
import { convertDelayStringToMS, resolveMember, zStrictMessageContent } from "../../../utils"; import { convertDelayStringToMS, resolveMember, zStrictMessageContent } from "../../../utils";
import { messageIsEmpty } from "../../../utils/messageIsEmpty"; import { messageIsEmpty } from "../../../utils/messageIsEmpty";
import { LogsPlugin } from "../../Logs/LogsPlugin"; import { LogsPlugin } from "../../Logs/LogsPlugin";
import { TagsPluginType } from "../types"; import { TagsPluginType } from "../types";
import { matchAndRenderTagFromString } from "./matchAndRenderTagFromString"; import { matchAndRenderTagFromString } from "./matchAndRenderTagFromString";
import { erisAllowedMentionsToDjsMentionOptions } from "../../../utils/erisAllowedMentionsToDjsMentionOptions";
export async function onMessageCreate(pluginData: GuildPluginData<TagsPluginType>, msg: SavedMessage) { export async function onMessageCreate(pluginData: GuildPluginData<TagsPluginType>, msg: SavedMessage) {
if (msg.is_bot) return; if (msg.is_bot) return;

View file

@ -13,7 +13,6 @@ import {
User, User,
} from "discord.js"; } from "discord.js";
import { GuildPluginData } from "knub"; import { GuildPluginData } from "knub";
import { UnknownUser, renderUserUsername } from "src/utils";
import { Case } from "../data/entities/Case"; import { Case } from "../data/entities/Case";
import { import {
ISavedMessageAttachmentData, ISavedMessageAttachmentData,
@ -27,6 +26,7 @@ import {
TypedTemplateSafeValueContainer, TypedTemplateSafeValueContainer,
ingestDataIntoTemplateSafeValueContainer, ingestDataIntoTemplateSafeValueContainer,
} from "../templateFormatter"; } from "../templateFormatter";
import { UnknownUser, renderUserUsername } from "../utils";
type InputProps<T> = Omit< type InputProps<T> = Omit<
{ {