bot18
Version:
A high-frequency cryptocurrency trading bot by Zenbot creator @carlos8f
16 lines • 379 B
JavaScript
module.exports = function container (get, set) {
return function runMount (cb) {
if (!get('hooks.booted')) {
get('hooks.runBoot')(function (err) {
if (err) return cb(err);
runMount(cb)
})
return
}
get('hooks.runHook')('mount', function (err) {
if (err) return cb(err)
set('@hooks.mounted', true)
cb()
})
}
}