mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
Release v1.0.0 🎉
This commit is contained in:
14
index.js
Executable file
14
index.js
Executable file
@@ -0,0 +1,14 @@
|
||||
require('rootpath')();
|
||||
const fs = require('fs');
|
||||
const path = './lib/provider';
|
||||
const sources = fs.readdirSync(path);
|
||||
const config = require('conf/config.json');
|
||||
const stats = require('./lib/services/stats');
|
||||
|
||||
setInterval(
|
||||
(function exec() {
|
||||
sources.forEach(source => require(`${path}/${source}`).run(stats));
|
||||
return exec;
|
||||
})(),
|
||||
config.interval * 60 * 1000
|
||||
);
|
||||
Reference in New Issue
Block a user