3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-27 11:15:02 +00:00

remove unused imports & add prettier plugin

Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
metal 2023-03-20 20:13:30 +00:00 committed by GitHub
parent 33c6ae2188
commit 59bf98f928
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
289 changed files with 861 additions and 834 deletions

View file

@ -1,6 +1,6 @@
import { StrictMessageContent } from "../utils";
import Timeout = NodeJS.Timeout;
import { calculateEmbedSize } from "./calculateEmbedSize";
import Timeout = NodeJS.Timeout;
type ConsumeFn = (part: StrictMessageContent) => void;

View file

@ -1,6 +1,6 @@
import { spawn, Worker, Pool } from "threads";
import { MINUTES } from "../utils";
import { Pool, spawn, Worker } from "threads";
import { env } from "../env";
import { MINUTES } from "../utils";
const pool = Pool(() => spawn(new Worker("./cryptWorker"), { timeout: 10 * MINUTES }), 8);

View file

@ -1,6 +1,6 @@
import { Profiler } from "knub/dist/Profiler";
import { performance } from "perf_hooks";
import { SECONDS, noop } from "../utils";
import { noop, SECONDS } from "../utils";
let _profilingEnabled = false;

View file

@ -1,6 +1,6 @@
import { MessageCreateOptions } from "discord.js";
import { messageHasContent } from "./messageHasContent";
import { StrictMessageContent } from "../utils.js";
import { messageHasContent } from "./messageHasContent";
export function messageIsEmpty(content: string | MessageCreateOptions | StrictMessageContent): boolean {
return !messageHasContent(content);

View file

@ -12,9 +12,9 @@ import {
StickerFormatType,
User,
} from "discord.js";
import { UnknownUser } from "src/utils";
import { GuildPluginData } from "knub";
import { TemplateSafeValueContainer, TypedTemplateSafeValueContainer } from "../templateFormatter";
import { UnknownUser } from "src/utils";
import { Case } from "../data/entities/Case";
import {
ISavedMessageAttachmentData,
ISavedMessageData,
@ -22,7 +22,7 @@ import {
ISavedMessageStickerData,
SavedMessage,
} from "../data/entities/SavedMessage";
import { Case } from "../data/entities/Case";
import { TemplateSafeValueContainer, TypedTemplateSafeValueContainer } from "../templateFormatter";
type InputProps<T> = Omit<
{