UNPKG

bot18

Version:

A high-frequency cryptocurrency trading bot by Zenbot creator @carlos8f

16 lines 384 B
module.exports = function container (get, set) { return function runListen (cb) { if (!get('hooks.mounted')) { get('hooks.runMount')(function (err) { if (err) return cb(err) runListen(cb) }) return } get('hooks.runHook')('listen', function (err) { if (err) return cb(err) set('@hooks.listened', true) cb() }) } }