diff --git a/src/equicordplugins/Freakcord/index.tsx b/src/equicordplugins/Freakcord/index.tsx new file mode 100644 index 00000000..6f95b0c6 --- /dev/null +++ b/src/equicordplugins/Freakcord/index.tsx @@ -0,0 +1,41 @@ +/* + * Vencord, a Discord client mod + * Copyright (c) 2024 Vendicated and contributors + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +import { addChatBarButton, ChatBarButton, ChatBarButtonFactory, removeChatBarButton } from "@api/ChatButtons"; +import { EquicordDevs } from "@utils/constants"; +import { getCurrentChannel, sendMessage } from "@utils/discord"; +import definePlugin from "@utils/types"; +const audioURL = "https://cdn.nest.rip/uploads/5919aa31-e61b-421d-af08-ad7ddacd28ea.ogg"; +const audioPlayer = new Audio(audioURL); +async function handleButtonClick() { + const channel = getCurrentChannel(); + if (channel) { + sendMessage(channel.id, { content: "Freakcord" }); + audioPlayer.play().catch(console.error); + } +} + + +const ChatBarIcon: ChatBarButtonFactory = () => { + return ( + + + + ); +}; + +export default definePlugin({ + name: "Freakcord", + description: "Adds freakness to your discord experience.", + authors: + [EquicordDevs.Crxa], + start: () => addChatBarButton("Freakcord", ChatBarIcon), + stop: () => removeChatBarButton("Freakcord") +});