From 9221f0ff1e5f15e42d61ffad42c1cab4ef2d972b Mon Sep 17 00:00:00 2001
From: verticalsync <60797172+verticalsync@users.noreply.github.com>
Date: Mon, 9 Dec 2024 20:15:59 +0200
Subject: [PATCH 1/4] remove(doubleCounterVerifyBypass): forced cloudflare, new
system perhaps
---
README.md | 1 -
.../doubleCounterVerifyBypass/index.tsx | 82 -------------------
2 files changed, 83 deletions(-)
delete mode 100644 src/equicordplugins/doubleCounterVerifyBypass/index.tsx
diff --git a/README.md b/README.md
index 5c055418..1109ae85 100644
--- a/README.md
+++ b/README.md
@@ -46,7 +46,6 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch
- DisableCameras by Joona
- DoNotLeak by Perny
- DontFilterMe by Samwich
-- DoubleCounterBypass by nyx
- EmojiDumper by Cortex, Samwich, Woosh
- Encryptcord by Inbestigator
- EquicordCSS by thororen, Panniku, Dablulite, Coolesding, MiniDiscordThemes, LuckFire, gold_me
diff --git a/src/equicordplugins/doubleCounterVerifyBypass/index.tsx b/src/equicordplugins/doubleCounterVerifyBypass/index.tsx
deleted file mode 100644
index 1f80b58b..00000000
--- a/src/equicordplugins/doubleCounterVerifyBypass/index.tsx
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * Vencord, a Discord client mod
- * Copyright (c) 2024 Vendicated and contributors
- * SPDX-License-Identifier: GPL-3.0-or-later
- */
-
-import { NavContextMenuPatchCallback } from "@api/ContextMenu";
-import { Devs } from "@utils/constants";
-import definePlugin from "@utils/types";
-import { Alerts, Menu } from "@webpack/common";
-import { Message } from "discord-types/general";
-
-const DOUBLECOUNTER_APP_ID = "703886990948565003";
-const VERIFICATION_LINK_REGEX = /https:\/\/verify.doublecounter.gg\/v\/[0-9a-z]{8,16}/g;
-
-const patchMessageContextMenu: NavContextMenuPatchCallback = (children, { message }) => {
- const { components } = message;
-
- if (message.author.id === DOUBLECOUNTER_APP_ID && components?.length === 0 && message.embeds?.map(embed => embed)[0].fields.length === 4) {
- children.push((
-
{
- const regex_link = VERIFICATION_LINK_REGEX.exec(message.embeds.map(embed => embed.fields.map(field => field))[0][1].rawValue);
- if (regex_link) {
- verify(regex_link[0]).then(() => {
- Alerts.show({
- title: "Verified",
- body: "You have been verified successfully, please wait a little bit for DoubleCounter to update your roles.",
- confirmText: "Okay",
- });
- });
- } else {
- Alerts.show({
- title: "Link not found",
- body: "The link has not been found in this message.",
- confirmText: "Okay"
- });
- }
- }}
- />
- ));
- }
-};
-
-async function verify(link) {
- try {
- const res = await fetch(link);
- console.log(res.ok);
- } catch { }
-}
-
-export default definePlugin({
- name: "DoubleCounterBypass",
- description: "Bypass Double Counter verifications easily.",
- authors: [Devs.nyx],
-
- contextMenus: {
- "message": patchMessageContextMenu,
- },
-
- flux: {
- async MESSAGE_CREATE({ message }: { message: Message; }) {
- if (message.author.id !== DOUBLECOUNTER_APP_ID || message.type !== 19 || message.embeds.length === 0) return;
-
- // @ts-ignore
- const link = VERIFICATION_LINK_REGEX.exec(message.embeds.map(embed => embed.fields.map(field => field))[0][1].value);
- console.log(link);
- await verify(link).then(() => {
- Alerts.show({
- title: "Verified",
- body: "You have been verified successfully, please wait a little bit for DoubleCounter to update your roles.",
- confirmText: "Okay",
- onConfirm: () => { }
- });
- });
- }
- }
-});
From 5cae5360b67c13e04f5edf7659bbfbcc82993524 Mon Sep 17 00:00:00 2001
From: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Date: Mon, 9 Dec 2024 13:35:32 -0500
Subject: [PATCH 2/4] Fix Workflow
---
.github/workflows/build.yml | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index f6a845b0..52a5b686 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -3,6 +3,8 @@ on:
push:
tags:
- v*
+ branches:
+ - main
env:
FORCE_COLOR: true
GITHUB_TOKEN: ${{ secrets.ETOKEN }}
@@ -73,9 +75,14 @@ jobs:
id: package-version
uses: martinbeentjes/npm-get-version-action@v1.3.1
- - name: Upload Equicord
+ - name: Upload Equicord Tagged
+ if: startsWith(github.ref, 'refs/tags/')
run: |
gh release upload v${{ steps.package-version.outputs.current-version}} --clobber dist/release/*
+
+ - name: Upload Equicord Stable
+ if: startsWith(github.ref, 'refs/tags/')
+ run: |
gh release upload latest --clobber dist/release/*
- name: Upload Plugins JSON to Equibored repo
From ddeeeeb41546ed5c7d8ffd264c7002c57ab7909f Mon Sep 17 00:00:00 2001
From: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Date: Mon, 9 Dec 2024 13:37:35 -0500
Subject: [PATCH 3/4] Actually Fix Workflow
---
.github/workflows/build.yml | 1 -
1 file changed, 1 deletion(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 52a5b686..8a3565a9 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -81,7 +81,6 @@ jobs:
gh release upload v${{ steps.package-version.outputs.current-version}} --clobber dist/release/*
- name: Upload Equicord Stable
- if: startsWith(github.ref, 'refs/tags/')
run: |
gh release upload latest --clobber dist/release/*
From 0e320a97c9d62ee4215aa413154435ccd251377b Mon Sep 17 00:00:00 2001
From: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Date: Mon, 9 Dec 2024 13:38:09 -0500
Subject: [PATCH 4/4] Only on main branch
---
.github/workflows/build.yml | 1 +
1 file changed, 1 insertion(+)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 8a3565a9..927c1be1 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -81,6 +81,7 @@ jobs:
gh release upload v${{ steps.package-version.outputs.current-version}} --clobber dist/release/*
- name: Upload Equicord Stable
+ if: ${{ github.ref_name == 'main' }}
run: |
gh release upload latest --clobber dist/release/*