This commit is contained in:
Tutur33
2024-03-02 21:15:14 +01:00
parent 90da5b1a97
commit 95daf7ef0f
10 changed files with 804 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
require('dotenv').config()
const run = require("./fonctions/run");
const runAsync = async () => {
if (process.env.TOKENS) {
const tokens = process.env.TOKENS.split(',');
Promise.all(tokens.map(token => run(token)));
} else {
console.error("Environment variable 'TOKENS' is not defined.");
}
};
runAsync();