From 8f885d8db155e4fad3cf6fadfe0b85260dc3c700 Mon Sep 17 00:00:00 2001 From: neoarz Date: Wed, 22 Apr 2026 12:38:23 -0400 Subject: [PATCH] feat: move plugin to main repo for easy clone and build --- nitroSniper/index.tsx => index.tsx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) rename nitroSniper/index.tsx => index.tsx (89%) diff --git a/nitroSniper/index.tsx b/index.tsx similarity index 89% rename from nitroSniper/index.tsx rename to index.tsx index 38d655e..ec9269b 100644 --- a/nitroSniper/index.tsx +++ b/index.tsx @@ -18,6 +18,12 @@ let startTime = 0; let claiming = false; const codeQueue: string[] = []; +function resetState() { + startTime = Date.now(); + codeQueue.length = 0; + claiming = false; +} + function processQueue() { if (claiming || !codeQueue.length) return; @@ -43,11 +49,11 @@ export default definePlugin({ name: "NitroSniper", description: "Automatically redeems Nitro gift links sent in chat", authors: [Devs.neoarz], + tags: ["Chat", "Utility"], + searchTerms: ["nitro", "gift", "redeem", "snipe"], start() { - startTime = Date.now(); - codeQueue.length = 0; - claiming = false; + resetState(); }, flux: { @@ -64,4 +70,3 @@ export default definePlugin({ } } }); -