You've already forked NitroSniper
mirror of
https://github.com/neoarz/NitroSniper.git
synced 2026-05-11 13:15:37 +02:00
feat: move plugin to main repo for easy clone and build
This commit is contained in:
@@ -18,6 +18,12 @@ let startTime = 0;
|
|||||||
let claiming = false;
|
let claiming = false;
|
||||||
const codeQueue: string[] = [];
|
const codeQueue: string[] = [];
|
||||||
|
|
||||||
|
function resetState() {
|
||||||
|
startTime = Date.now();
|
||||||
|
codeQueue.length = 0;
|
||||||
|
claiming = false;
|
||||||
|
}
|
||||||
|
|
||||||
function processQueue() {
|
function processQueue() {
|
||||||
if (claiming || !codeQueue.length) return;
|
if (claiming || !codeQueue.length) return;
|
||||||
|
|
||||||
@@ -43,11 +49,11 @@ export default definePlugin({
|
|||||||
name: "NitroSniper",
|
name: "NitroSniper",
|
||||||
description: "Automatically redeems Nitro gift links sent in chat",
|
description: "Automatically redeems Nitro gift links sent in chat",
|
||||||
authors: [Devs.neoarz],
|
authors: [Devs.neoarz],
|
||||||
|
tags: ["Chat", "Utility"],
|
||||||
|
searchTerms: ["nitro", "gift", "redeem", "snipe"],
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
startTime = Date.now();
|
resetState();
|
||||||
codeQueue.length = 0;
|
|
||||||
claiming = false;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
flux: {
|
flux: {
|
||||||
@@ -64,4 +70,3 @@ export default definePlugin({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Reference in New Issue
Block a user