dbot/modules/profile/profile.js
Sam Nicholls ab0a110a8e Initial databankerisation of profile [#331]
* Stats functionality disabled until completion of SamStudio8/dbot-stats#98
* Profile grid currently only works with dbType set to memory
* Merge user functionality temporarily disabled
2013-04-20 22:51:36 +01:00

20 lines
531 B
JavaScript

var _ = require('underscore')._;
var profile = function(dbot) {
this.onLoad = function(){
var api = this.api;
var schema = this.config.schema;
// Add API Hooks
dbot.api.command.addHook('~setaliasparent', this.api.renameProfile);
//TODO(@samstudio8) Profile Merging
//dbot.api.command.addHook('~mergeusers', this.api.mergeProfile);
dbot.api.event.addHook('new_user', this.api.createProfile);
};
};
exports.fetch = function(dbot) {
return new profile(dbot);
};