mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 21:33:35 -05:00
Make Plugin Names Consistent
This commit is contained in:
parent
b8cb056f13
commit
5b4fb13ab3
3 changed files with 9 additions and 4 deletions
|
@ -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.",
|
||||
|
|
|
@ -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],
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
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],
|
||||
|
|
Loading…
Reference in a new issue