From 97886e572811d9aa31964d123f00b7eac111859b Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Tue, 30 Apr 2024 17:34:45 -0300 Subject: [PATCH] BetterFolders: Fix patch; MessageLogger: Ignore Venbot; ReviewDB: Clean migration code --- src/plugins/betterFolders/index.tsx | 2 +- src/plugins/messageLogger/index.tsx | 4 +++- src/plugins/reviewDB/index.tsx | 8 -------- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/plugins/betterFolders/index.tsx b/src/plugins/betterFolders/index.tsx index 68c50bcf..70e4070c 100644 --- a/src/plugins/betterFolders/index.tsx +++ b/src/plugins/betterFolders/index.tsx @@ -209,7 +209,7 @@ export default definePlugin({ predicate: () => settings.store.closeAllHomeButton, replacement: { // Close all folders when clicking the home button - match: /(?<=onClick:\(\)=>{)(?=.{0,200}"discodo")/, + match: /(?<=onClick:\(\)=>{)(?=.{0,300}"discodo")/, replace: "$self.closeFolders();" } } diff --git a/src/plugins/messageLogger/index.tsx b/src/plugins/messageLogger/index.tsx index c8b46439..c3a25e1b 100644 --- a/src/plugins/messageLogger/index.tsx +++ b/src/plugins/messageLogger/index.tsx @@ -217,7 +217,9 @@ export default definePlugin({ ignoreChannels.includes(message.channel_id) || ignoreChannels.includes(ChannelStore.getChannel(message.channel_id)?.parent_id) || (isEdit ? !logEdits : !logDeletes) || - ignoreGuilds.includes(ChannelStore.getChannel(message.channel_id)?.guild_id); + ignoreGuilds.includes(ChannelStore.getChannel(message.channel_id)?.guild_id) || + // Ignore Venbot in the support channel + (message.channel_id === "1026515880080842772" && message.author?.id === "1017176847865352332"); }, // Based on canary 63b8f1b4f2025213c5cf62f0966625bee3d53136 diff --git a/src/plugins/reviewDB/index.tsx b/src/plugins/reviewDB/index.tsx index ad24e969..0c3578b0 100644 --- a/src/plugins/reviewDB/index.tsx +++ b/src/plugins/reviewDB/index.tsx @@ -23,7 +23,6 @@ import ErrorBoundary from "@components/ErrorBoundary"; import ExpandableHeader from "@components/ExpandableHeader"; import { OpenExternalIcon } from "@components/Icons"; import { Devs } from "@utils/constants"; -import { Logger } from "@utils/Logger"; import definePlugin from "@utils/types"; import { Alerts, Menu, Parser, useState } from "@webpack/common"; import { Guild, User } from "discord-types/general"; @@ -75,13 +74,6 @@ export default definePlugin({ const s = settings.store; const { lastReviewId, notifyReviews } = s; - const legacy = s as any as { token?: string; }; - if (legacy.token) { - await updateAuth({ token: legacy.token }); - legacy.token = undefined; - new Logger("ReviewDB").info("Migrated legacy settings"); - } - await initAuth(); setTimeout(async () => {