mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-17 07:05:03 +00:00
chore: format repo
Begone formatting errors
This commit is contained in:
parent
8a4f7fe0e8
commit
339edd5faa
21 changed files with 95 additions and 41 deletions
|
@ -1,11 +1,17 @@
|
|||
import { Embed, Invite } from "discord.js";
|
||||
import { Invite } from "discord.js";
|
||||
import escapeStringRegexp from "escape-string-regexp";
|
||||
import { GuildPluginData } from "knub";
|
||||
import cloneDeep from "lodash/cloneDeep.js";
|
||||
import { allowTimeout } from "../../../RegExpRunner.js";
|
||||
import { ZalgoRegex } from "../../../data/Zalgo.js";
|
||||
import { ISavedMessageEmbedData, SavedMessage } from "../../../data/entities/SavedMessage.js";
|
||||
import { getInviteCodesInString, getUrlsInString, isGuildInvite, resolveInvite, resolveMember } from "../../../utils.js";
|
||||
import {
|
||||
getInviteCodesInString,
|
||||
getUrlsInString,
|
||||
isGuildInvite,
|
||||
resolveInvite,
|
||||
resolveMember,
|
||||
} from "../../../utils.js";
|
||||
import { CensorPluginType } from "../types.js";
|
||||
import { censorMessage } from "./censorMessage.js";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { BasePluginType } from "knub";
|
||||
import { z } from "zod";
|
||||
import { Configs } from "../../data/Configs.js";
|
||||
import Timeout = NodeJS.Timeout;
|
||||
import { z } from "zod";
|
||||
|
||||
export const zGuildConfigReloaderPlugin = z.strictObject({});
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { BasePluginType } from "knub";
|
||||
import { GuildMemberCache } from "../../data/GuildMemberCache.js";
|
||||
import { z } from "zod";
|
||||
import { GuildMemberCache } from "../../data/GuildMemberCache.js";
|
||||
|
||||
export const zGuildMemberCacheConfig = z.strictObject({});
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { WebhookClient } from "discord.js";
|
||||
import { BasePluginType } from "knub";
|
||||
import { z } from "zod";
|
||||
import { Queue } from "../../Queue.js";
|
||||
import { Webhooks } from "../../data/Webhooks.js";
|
||||
import { z } from "zod";
|
||||
|
||||
export const zInternalPosterConfig = z.strictObject({});
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ import {
|
|||
import { LogsThreadCreateEvt, LogsThreadDeleteEvt, LogsThreadUpdateEvt } from "./events/LogsThreadModifyEvts.js";
|
||||
import { LogsGuildMemberUpdateEvt } from "./events/LogsUserUpdateEvts.js";
|
||||
import { LogsVoiceStateUpdateEvt } from "./events/LogsVoiceChannelEvts.js";
|
||||
import { FORMAT_NO_TIMESTAMP, LogsPluginType, zLogsConfig } from "./types.js";
|
||||
import { LogsPluginType, zLogsConfig } from "./types.js";
|
||||
import { getLogMessage } from "./util/getLogMessage.js";
|
||||
import { log } from "./util/log.js";
|
||||
import { onMessageDelete } from "./util/onMessageDelete.js";
|
||||
|
|
|
@ -12,7 +12,7 @@ import {
|
|||
userToTemplateSafeUser,
|
||||
} from "../../../utils/templateSafeObjects.js";
|
||||
import { TimeAndDatePlugin } from "../../TimeAndDate/TimeAndDatePlugin.js";
|
||||
import { FORMAT_NO_TIMESTAMP, LogsPluginType } from "../types.js";
|
||||
import { LogsPluginType } from "../types.js";
|
||||
import { log } from "../util/log.js";
|
||||
|
||||
export interface LogMessageDeleteData {
|
||||
|
|
|
@ -6,7 +6,7 @@ import { GuildCases } from "../../data/GuildCases.js";
|
|||
import { GuildLogs } from "../../data/GuildLogs.js";
|
||||
import { GuildSavedMessages } from "../../data/GuildSavedMessages.js";
|
||||
import { LogType } from "../../data/LogType.js";
|
||||
import { keys, zBoundedCharacters, zMessageContent, zRegex, zSnowflake } from "../../utils.js";
|
||||
import { zBoundedCharacters, zMessageContent, zRegex, zSnowflake } from "../../utils.js";
|
||||
import { MessageBuffer } from "../../utils/MessageBuffer.js";
|
||||
import {
|
||||
TemplateSafeCase,
|
||||
|
|
|
@ -25,7 +25,7 @@ import {
|
|||
TemplateSafeUser,
|
||||
} from "../../../utils/templateSafeObjects.js";
|
||||
import { TimeAndDatePlugin } from "../../TimeAndDate/TimeAndDatePlugin.js";
|
||||
import { FORMAT_NO_TIMESTAMP, ILogTypeData, LogsPluginType, TLogChannel } from "../types.js";
|
||||
import { ILogTypeData, LogsPluginType, TLogChannel } from "../types.js";
|
||||
|
||||
export async function getLogMessage<TLogType extends keyof ILogTypeData>(
|
||||
pluginData: GuildPluginData<LogsPluginType>,
|
||||
|
|
|
@ -2,7 +2,12 @@ import { PluginOptions, guildPlugin } from "knub";
|
|||
import { GuildSavedMessages } from "../../data/GuildSavedMessages.js";
|
||||
import { SaveMessagesToDBCmd } from "./commands/SaveMessagesToDB.js";
|
||||
import { SavePinsToDBCmd } from "./commands/SavePinsToDB.js";
|
||||
import { MessageCreateEvt, MessageDeleteBulkEvt, MessageDeleteEvt, MessageUpdateEvt } from "./events/SaveMessagesEvts.js";
|
||||
import {
|
||||
MessageCreateEvt,
|
||||
MessageDeleteBulkEvt,
|
||||
MessageDeleteEvt,
|
||||
MessageUpdateEvt,
|
||||
} from "./events/SaveMessagesEvts.js";
|
||||
import { MessageSaverPluginType, zMessageSaverConfig } from "./types.js";
|
||||
|
||||
const defaultOptions: PluginOptions<MessageSaverPluginType> = {
|
||||
|
|
|
@ -3,7 +3,14 @@ import { commandTypeHelpers as ct } from "../../../commandTypes.js";
|
|||
import { CaseTypes } from "../../../data/CaseTypes.js";
|
||||
import { sendErrorMessage } from "../../../pluginUtils.js";
|
||||
import { CasesPlugin } from "../../../plugins/Cases/CasesPlugin.js";
|
||||
import { UnknownUser, chunkArray, emptyEmbedValue, renderUsername, resolveMember, resolveUser } from "../../../utils.js";
|
||||
import {
|
||||
UnknownUser,
|
||||
chunkArray,
|
||||
emptyEmbedValue,
|
||||
renderUsername,
|
||||
resolveMember,
|
||||
resolveUser,
|
||||
} from "../../../utils.js";
|
||||
import { asyncMap } from "../../../utils/async.js";
|
||||
import { createPaginatedMessage } from "../../../utils/createPaginatedMessage.js";
|
||||
import { getGuildPrefix } from "../../../utils/getGuildPrefix.js";
|
||||
|
|
|
@ -3,7 +3,13 @@ import { GuildPluginData } from "knub";
|
|||
import { CaseTypes } from "../../../data/CaseTypes.js";
|
||||
import { LogType } from "../../../data/LogType.js";
|
||||
import { renderTemplate, TemplateParseError, TemplateSafeValueContainer } from "../../../templateFormatter.js";
|
||||
import { createUserNotificationError, notifyUser, resolveUser, ucfirst, UserNotificationResult } from "../../../utils.js";
|
||||
import {
|
||||
createUserNotificationError,
|
||||
notifyUser,
|
||||
resolveUser,
|
||||
ucfirst,
|
||||
UserNotificationResult,
|
||||
} from "../../../utils.js";
|
||||
import { userToTemplateSafeUser } from "../../../utils/templateSafeObjects.js";
|
||||
import { CasesPlugin } from "../../Cases/CasesPlugin.js";
|
||||
import { LogsPlugin } from "../../Logs/LogsPlugin.js";
|
||||
|
|
|
@ -2,7 +2,13 @@ import { GuildMember, Snowflake } from "discord.js";
|
|||
import { GuildPluginData } from "knub";
|
||||
import { CaseTypes } from "../../../data/CaseTypes.js";
|
||||
import { TemplateParseError, TemplateSafeValueContainer, renderTemplate } from "../../../templateFormatter.js";
|
||||
import { UserNotificationResult, createUserNotificationError, notifyUser, resolveUser, ucfirst } from "../../../utils.js";
|
||||
import {
|
||||
UserNotificationResult,
|
||||
createUserNotificationError,
|
||||
notifyUser,
|
||||
resolveUser,
|
||||
ucfirst,
|
||||
} from "../../../utils.js";
|
||||
import { userToTemplateSafeUser } from "../../../utils/templateSafeObjects.js";
|
||||
import { waitForButtonConfirm } from "../../../utils/waitForInteraction.js";
|
||||
import { CasesPlugin } from "../../Cases/CasesPlugin.js";
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
import { GuildPluginData } from "knub";
|
||||
import { getPhishermanDomainInfo, phishermanDomainIsSafe, trackPhishermanCaughtDomain } from "../../../data/Phisherman.js";
|
||||
import {
|
||||
getPhishermanDomainInfo,
|
||||
phishermanDomainIsSafe,
|
||||
trackPhishermanCaughtDomain,
|
||||
} from "../../../data/Phisherman.js";
|
||||
import { PhishermanDomainInfo } from "../../../data/types/phisherman.js";
|
||||
import { PhishermanPluginType } from "../types.js";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue