let users = []
let [user_info] = await vk.api.users.get({ user_id: message.senderId, fields: 'first_name,last_name' })
users.push({
id: message.senderId,
name: user_info.first_name + ' ' + user_info.last_name,
balance: 0
})
const scheduler = new ToadScheduler()
const SSH = require('child_proccess')
const task = new Task('simple task', () => {
try{ var msg = SSH.execSync('node main.js') } catch (err){ console.error(err.toString()) }
})
const job = new SimpleIntervalJob({ seconds: 120, }, task)
scheduler.addSimpleIntervalJob(job)