From 5b4fb13ab354144cfd959c2add7d74e8ecc699db Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Thu, 25 Jul 2024 01:17:34 -0400 Subject: [PATCH] Make Plugin Names Consistent --- src/equicordplugins/emojiDumper/index.tsx | 2 ++ src/equicordplugins/noAppsAllowed/index.tsx | 4 +++- src/plugins/oneko/index.ts | 7 ++++--- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/equicordplugins/emojiDumper/index.tsx b/src/equicordplugins/emojiDumper/index.tsx index 6c6b390e..9569ad95 100644 --- a/src/equicordplugins/emojiDumper/index.tsx +++ b/src/equicordplugins/emojiDumper/index.tsx @@ -5,6 +5,7 @@ */ import { addContextMenuPatch, findGroupChildrenByChildId, NavContextMenuPatchCallback, removeContextMenuPatch } from "@api/ContextMenu"; +import { migratePluginSettings } from "@api/Settings"; import { Devs, EquicordDevs } from "@utils/constants"; import definePlugin from "@utils/types"; import { Menu } from "@webpack/common"; @@ -22,6 +23,7 @@ const Patch: NavContextMenuPatchCallback = (children, { guild }: { guild: Guild; } }; +migratePluginSettings("EmojiDumper", "emojiDumper"); export default definePlugin({ name: "EmojiDumper", description: "Context menu to dump and download a server's emojis.", diff --git a/src/equicordplugins/noAppsAllowed/index.tsx b/src/equicordplugins/noAppsAllowed/index.tsx index dbedeab8..00eb4729 100644 --- a/src/equicordplugins/noAppsAllowed/index.tsx +++ b/src/equicordplugins/noAppsAllowed/index.tsx @@ -4,11 +4,13 @@ * SPDX-License-Identifier: GPL-3.0-or-later */ +import { migratePluginSettings } from "@api/Settings"; import { EquicordDevs } from "@utils/constants"; import definePlugin from "@utils/types"; +migratePluginSettings("NoAppsAllowed", "noAppsAllowed"); export default definePlugin({ - name: "noAppsAllowed", + name: "NoAppsAllowed", description: "returns the bot's tag :skulk:", authors: [EquicordDevs.kvba], diff --git a/src/plugins/oneko/index.ts b/src/plugins/oneko/index.ts index ad35268f..32c7e917 100644 --- a/src/plugins/oneko/index.ts +++ b/src/plugins/oneko/index.ts @@ -16,7 +16,7 @@ * along with this program. If not, see . */ -import { definePluginSettings, Settings } from "@api/Settings"; +import { definePluginSettings, migratePluginSettings, Settings } from "@api/Settings"; import { Devs } from "@utils/constants"; import definePlugin, { OptionType } from "@utils/types"; @@ -31,7 +31,7 @@ const settings = definePluginSettings({ }, onChange: () => { // note: cant call the start() function from here. so i just copy pasted it (This was pointed out in the last commit i made. So this is to just clear stuff up for any future devs that work on this :D ) - if (Settings.plugins.oneko.enabled) { + if (Settings.plugins.Oneko.enabled) { document.getElementById("oneko")?.remove(); fetch("https://raw.githubusercontent.com/adryd325/oneko.js/8fa8a1864aa71cd7a794d58bc139e755e96a236c/oneko.js") .then(x => x.text()) @@ -45,8 +45,9 @@ const settings = definePluginSettings({ } }); +migratePluginSettings("Oneko", "oneko"); export default definePlugin({ - name: "oneko", + name: "Oneko", description: "cat follow mouse (real)", // Listing adryd here because this literally just evals her script authors: [Devs.Ven, Devs.adryd],