Commit d05b6dbc authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent a59fee46
...@@ -7,6 +7,8 @@ const shell = require('shelljs') ...@@ -7,6 +7,8 @@ const shell = require('shelljs')
const cron = require('node-cron'); const cron = require('node-cron');
let Hetzner = require('./Hetzner') let Hetzner = require('./Hetzner')
const cronRemover = require('node-cron'); const cronRemover = require('node-cron');
const cronRemover2 = require('node-cron');
const request = require('request'); const request = require('request');
const fs = require('fs') const fs = require('fs')
const cronSpeed = require('node-cron'); const cronSpeed = require('node-cron');
...@@ -70,10 +72,22 @@ cronRemover.schedule(' */1 * * * *', () => { ...@@ -70,10 +72,22 @@ cronRemover.schedule(' */1 * * * *', () => {
}); });
cronRemover2.schedule(' */15 * * * *', () => {
init2()
});
async function init() { async function init() {
await initToken() await initToken()
await addIp() await addIp()
await attacher() await attacher()
}
async function init2() {
await initToken()
await remover() await remover()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment