mirror of
https://github.com/reality/dbot.git
synced 2024-12-25 20:22:39 +01:00
ab0a110a8e
* 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
20 lines
531 B
JavaScript
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);
|
|
};
|