mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-16 09:57:08 -04:00
New Plugin
This commit is contained in:
parent
96df3abaac
commit
d2f9356f84
12 changed files with 72 additions and 37 deletions
|
@ -5,12 +5,10 @@
|
|||
*/
|
||||
|
||||
import { addMessagePreSendListener, removeMessagePreSendListener } from "@api/MessageEvents";
|
||||
import { migratePluginSettings } from "@api/Settings";
|
||||
import { Devs } from "@utils/constants";
|
||||
import definePlugin from "@utils/types";
|
||||
import { ChannelStore, GuildMemberStore, SelectedChannelStore, SelectedGuildStore } from "@webpack/common";
|
||||
|
||||
migratePluginSettings("AtSomeone", "atSomeone");
|
||||
export default definePlugin({
|
||||
name: "AtSomeone",
|
||||
authors: [Devs.Joona],
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { type NavContextMenuPatchCallback } from "@api/ContextMenu";
|
||||
import { Notifications } from "@api/index";
|
||||
import { definePluginSettings, migratePluginSettings } from "@api/Settings";
|
||||
import { definePluginSettings } from "@api/Settings";
|
||||
import { Devs } from "@utils/constants";
|
||||
import { getCurrentChannel } from "@utils/discord";
|
||||
import { Logger } from "@utils/Logger";
|
||||
|
@ -146,7 +146,6 @@ const settings = definePluginSettings({
|
|||
}
|
||||
});
|
||||
|
||||
migratePluginSettings("BypassStatus", "BypassDND");
|
||||
export default definePlugin({
|
||||
name: "BypassStatus",
|
||||
description: "Still get notifications from specific sources when in do not disturb mode. Right-click on users/channels/guilds to set them to bypass do not disturb mode.",
|
||||
|
|
|
@ -8,7 +8,7 @@ import "./styles.css";
|
|||
|
||||
import { NavContextMenuPatchCallback } from "@api/ContextMenu";
|
||||
import { get } from "@api/DataStore";
|
||||
import { definePluginSettings, migratePluginSettings, Settings } from "@api/Settings";
|
||||
import { definePluginSettings, Settings } from "@api/Settings";
|
||||
import { EquicordDevs } from "@utils/constants";
|
||||
import { openModal } from "@utils/modal";
|
||||
import definePlugin, { OptionType } from "@utils/types";
|
||||
|
@ -69,8 +69,6 @@ const settings = definePluginSettings({
|
|||
}
|
||||
});
|
||||
|
||||
|
||||
migratePluginSettings("CustomUserColors", "customUserColors");
|
||||
export default definePlugin({
|
||||
name: "CustomUserColors",
|
||||
description: "Lets you add a custom color to any user, anywhere! Highly recommend to use with typingTweaks and roleColorEverywhere",
|
||||
|
|
50
src/equicordplugins/freaky/index.tsx
Normal file
50
src/equicordplugins/freaky/index.tsx
Normal file
|
@ -0,0 +1,50 @@
|
|||
/*
|
||||
* Vencord, a Discord client mod
|
||||
* Copyright (c) 2024 Vendicated and contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
import { ApplicationCommandInputType, ApplicationCommandOptionType, findOption } from "@api/Commands";
|
||||
import { EquicordDevs } from "@utils/constants";
|
||||
import { sendMessage } from "@utils/discord";
|
||||
import definePlugin from "@utils/types";
|
||||
|
||||
const charMap: Record<string, string> = {
|
||||
q: "𝓺", w: "𝔀", e: "𝓮", r: "𝓻", t: "𝓽", y: "𝔂", u: "𝓾", i: "𝓲", o: "𝓸", p: "𝓹",
|
||||
a: "𝓪", s: "𝓼", d: "𝓭", f: "𝓯", g: "𝓰", h: "𝓱", j: "𝓳", k: "𝓴", l: "𝓵", z: "𝔃",
|
||||
x: "𝔁", c: "𝓬", v: "𝓿", b: "𝓫", n: "𝓷", m: "𝓶", Q: "𝓠", W: "𝓦", E: "𝓔", R: "𝓡",
|
||||
T: "𝓣", Y: "𝓨", U: "𝓤", I: "𝓘", O: "𝓞", P: "𝓟", A: "𝓐", S: "𝓢", D: "𝓓", F: "𝓕",
|
||||
G: "𝓖", H: "𝓗", J: "𝓙", K: "𝓚", L: "𝓛", Z: "𝓩", X: "𝓧", C: "𝓒", V: "𝓥", B: "𝓑",
|
||||
N: "𝓝", M: "𝓜",
|
||||
};
|
||||
|
||||
const mapCharacters = (text: string, map: Record<string, string>) =>
|
||||
text.split("").map(char => map[char] || char).join("");
|
||||
|
||||
function makeFreaky(text: string) {
|
||||
text = mapCharacters(text.trim() || "freaky", charMap);
|
||||
text += Math.random() < 0.25 ? " 👅" : " ❤️";
|
||||
return text;
|
||||
}
|
||||
|
||||
export default definePlugin({
|
||||
name: "Freaky",
|
||||
description: "freaky.",
|
||||
authors: [EquicordDevs.nyx],
|
||||
commands: [
|
||||
{
|
||||
name: "freaky",
|
||||
description: "it's freaky.",
|
||||
inputType: ApplicationCommandInputType.BUILT_IN,
|
||||
options: [{
|
||||
name: "message",
|
||||
description: "yoooo freaky",
|
||||
type: ApplicationCommandOptionType.STRING,
|
||||
required: true
|
||||
}],
|
||||
execute: (opts, ctx) => {
|
||||
sendMessage(ctx.channel.id, { content: makeFreaky(findOption(opts, "message", "")) });
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
import { migratePluginSettings, Settings } from "@api/Settings";
|
||||
import { Settings } from "@api/Settings";
|
||||
import { disableStyle, enableStyle } from "@api/Styles";
|
||||
import { EquicordDevs } from "@utils/constants";
|
||||
import definePlugin from "@utils/types";
|
||||
|
@ -17,7 +17,6 @@ interface iUSRBG extends Plugin {
|
|||
getImageUrl(userId: string): string | null;
|
||||
}
|
||||
|
||||
migratePluginSettings("FullVCPFP", "fullVcPfp");
|
||||
export default definePlugin({
|
||||
name: "FullVCPFP",
|
||||
description: "Makes avatars take up the entire vc tile",
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
*/
|
||||
|
||||
import { ApplicationCommandInputType, ApplicationCommandOptionType, Argument, CommandContext, sendBotMessage } from "@api/Commands";
|
||||
import { migratePluginSettings } from "@api/Settings";
|
||||
import { EquicordDevs } from "@utils/constants";
|
||||
import definePlugin from "@utils/types";
|
||||
import { findByPropsLazy } from "@webpack";
|
||||
|
@ -75,7 +74,6 @@ async function resolveImage(options: Argument[], ctx: CommandContext): Promise<{
|
|||
return { image, width, height };
|
||||
}
|
||||
|
||||
migratePluginSettings("ImgToGif", "imgtogif");
|
||||
export default definePlugin({
|
||||
name: "ImgToGif",
|
||||
description: "Adds a /imgtogif slash command to create a gif from any image",
|
||||
|
|
|
@ -11,7 +11,6 @@ import {
|
|||
} from "@api/MessageEvents";
|
||||
import {
|
||||
definePluginSettings,
|
||||
migratePluginSettings,
|
||||
Settings,
|
||||
} from "@api/Settings";
|
||||
import { Devs } from "@utils/constants";
|
||||
|
@ -21,8 +20,6 @@ const presendObject: MessageSendListener = (channelId, msg) => {
|
|||
msg.content = textProcessing(msg.content);
|
||||
};
|
||||
|
||||
migratePluginSettings("PolishWording", "Grammar");
|
||||
|
||||
const settings = definePluginSettings({
|
||||
blockedWords: {
|
||||
type: OptionType.STRING,
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import { DataStore } from "@api/index";
|
||||
import { definePluginSettings, migratePluginSettings, migrateSettingFromPlugin } from "@api/Settings";
|
||||
import { definePluginSettings } from "@api/Settings";
|
||||
import { Devs } from "@utils/constants";
|
||||
import { useForceUpdater } from "@utils/react";
|
||||
import definePlugin, { OptionType } from "@utils/types";
|
||||
|
@ -101,8 +101,6 @@ const settings = definePluginSettings({
|
|||
},
|
||||
});
|
||||
|
||||
migrateSettingFromPlugin("RPCEditor", "replacedAppIds", "ReplaceActivityTypes", "replacedAppIds");
|
||||
migratePluginSettings("RPCEditor", "ReplaceActivityTypes");
|
||||
export default definePlugin({
|
||||
name: "RPCEditor",
|
||||
description: "Edit the type and content of any Rich Presence",
|
||||
|
|
|
@ -8,7 +8,7 @@ import { addChatBarButton, ChatBarButton, ChatBarButtonFactory, removeChatBarBut
|
|||
import { ApplicationCommandInputType, ApplicationCommandOptionType, findOption, sendBotMessage } from "@api/Commands";
|
||||
import { findGroupChildrenByChildId, NavContextMenuPatchCallback } from "@api/ContextMenu";
|
||||
import { addMessagePreSendListener, removeMessagePreSendListener } from "@api/MessageEvents";
|
||||
import { definePluginSettings, migratePluginSettings } from "@api/Settings";
|
||||
import { definePluginSettings } from "@api/Settings";
|
||||
import { Devs, EquicordDevs } from "@utils/constants";
|
||||
import definePlugin, { OptionType } from "@utils/types";
|
||||
import { Menu, React } from "@webpack/common";
|
||||
|
@ -93,8 +93,6 @@ const ChatBarContextCheckbox: NavContextMenuPatchCallback = children => {
|
|||
);
|
||||
};
|
||||
|
||||
migratePluginSettings("Signature", "SentVia");
|
||||
|
||||
export default definePlugin({
|
||||
name: "Signature",
|
||||
description: "Automated fingerprint/end text",
|
||||
|
|
|
@ -8,7 +8,7 @@ import "./styles.css";
|
|||
|
||||
import { NavContextMenuPatchCallback } from "@api/ContextMenu";
|
||||
import * as DataStore from "@api/DataStore";
|
||||
import { definePluginSettings, migratePluginSettings } from "@api/Settings";
|
||||
import { definePluginSettings } from "@api/Settings";
|
||||
import ErrorBoundary from "@components/ErrorBoundary";
|
||||
import { Devs } from "@utils/constants";
|
||||
import { openModal } from "@utils/modal";
|
||||
|
@ -138,7 +138,6 @@ const userContextMenuPatch: NavContextMenuPatchCallback = (children, { user }: {
|
|||
|
||||
};
|
||||
|
||||
migratePluginSettings("Timezones", "Timezone");
|
||||
export default definePlugin({
|
||||
name: "Timezones",
|
||||
authors: [Devs.Aria],
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
*/
|
||||
|
||||
import { NavContextMenuPatchCallback } from "@api/ContextMenu";
|
||||
import { migratePluginSettings } from "@api/Settings";
|
||||
import { CodeBlock } from "@components/CodeBlock";
|
||||
import ErrorBoundary from "@components/ErrorBoundary";
|
||||
import { Devs } from "@utils/constants";
|
||||
|
@ -24,8 +23,6 @@ import definePlugin from "@utils/types";
|
|||
import { Forms, Menu, Text } from "@webpack/common";
|
||||
import { Message } from "discord-types/general";
|
||||
|
||||
migratePluginSettings("ViewRawVariant", "ViewRaw2");
|
||||
|
||||
type CustomMessage = Message & {
|
||||
editHistory?: any;
|
||||
deleted?: any;
|
||||
|
@ -130,8 +127,7 @@ function makeContextCallback(
|
|||
|
||||
export default definePlugin({
|
||||
name: "ViewRawVariant",
|
||||
description:
|
||||
"Copy/View raw content of any message, channel, or guild, but show in the right click menu.",
|
||||
description: "Copy/View raw content of any message, channel, or guild, but show in the right click menu.",
|
||||
authors: [Devs.KingFish, Devs.Ven, Devs.rad, Devs.ImLvna, Devs.Kyuuhachi],
|
||||
contextMenus: {
|
||||
"guild-context": makeContextCallback("guild", val =>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue