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;
|
||||
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({
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user