mirror of
https://github.com/Equicord/Equicord.git
synced 2025-04-01 13:11:57 -04:00
Equissant
This commit is contained in:
parent
7c5f01bf11
commit
69878952a0
2 changed files with 44 additions and 1 deletions
|
@ -138,7 +138,7 @@ export default definePlugin({
|
|||
settingsAboutComponent: () => {
|
||||
return (
|
||||
<>
|
||||
<Text>To change your keycode, check out <a href="https://www.toptal.com/developers/keycode" target="_blank" rel="noreferrer">this tool</a>!</Text>
|
||||
<Text>To change your keycode, check out <a href="https://www.toptal.com/developers/keycode" target="_blank" rel="noreferrer noopener">this tool</a>!</Text>
|
||||
</>
|
||||
);
|
||||
},
|
||||
|
|
43
src/equicordplugins/equissant/index.ts
Normal file
43
src/equicordplugins/equissant/index.ts
Normal file
|
@ -0,0 +1,43 @@
|
|||
/*
|
||||
* Vencord, a modification for Discord's desktop app
|
||||
* Copyright (c) 2022 Vendicated and Megumin
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { EquicordDevs } from "@utils/constants";
|
||||
import definePlugin from "@utils/types";
|
||||
|
||||
let clickCount = 0;
|
||||
|
||||
function play() {
|
||||
clickCount++;
|
||||
|
||||
if (clickCount % 10 === 0) {
|
||||
const audio = new Audio("https://github.com/Equicord/Equibored/raw/main/sounds/equissant/croissant.mp3");
|
||||
audio.play();
|
||||
}
|
||||
}
|
||||
|
||||
export default definePlugin({
|
||||
name: "Equissant",
|
||||
description: "Crossant every 10 clicks :trolley:",
|
||||
authors: [EquicordDevs.SomeAspy, EquicordDevs.thororen],
|
||||
start() {
|
||||
document.addEventListener("click", play);
|
||||
},
|
||||
stop() {
|
||||
document.removeEventListener("click", play);
|
||||
}
|
||||
});
|
Loading…
Add table
Reference in a new issue