Commit d05b6dbc authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent a59fee46
......@@ -7,6 +7,8 @@ const shell = require('shelljs')
const cron = require('node-cron');
let Hetzner = require('./Hetzner')
const cronRemover = require('node-cron');
const cronRemover2 = require('node-cron');
const request = require('request');
const fs = require('fs')
const cronSpeed = require('node-cron');
......@@ -70,10 +72,22 @@ cronRemover.schedule(' */1 * * * *', () => {
});
cronRemover2.schedule(' */15 * * * *', () => {
init2()
});
async function init() {
await initToken()
await addIp()
await attacher()
}
async function init2() {
await initToken()
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