bot18
Version:
A high-frequency cryptocurrency trading bot by Zenbot creator @carlos8f
25 lines (18 loc) • 553 B
JavaScript
/**
* Each implemented mechanism offers multiple methods
* - name : name of the auth method
* - auth :
* - match: checks if the client has enough options to
* offer this mechanis to xmpp servers
* - authServer: takes a stanza and extracts the information
*/
var inherits = require('node-xmpp-core').inherits
var EventEmitter = require('events').EventEmitter
// Mechanisms
function Mechanism () {}
inherits(Mechanism, EventEmitter)
Mechanism.prototype.authAttrs = function () {
return {}
}
module.exports = Mechanism