mirror of
https://github.com/reality/dbot.git
synced 2025-01-26 20:14:32 +01:00
move charybdis module to atheme
This commit is contained in:
parent
8dfe1a37c4
commit
e83b4af33f
@ -4,7 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
var _ = require('underscore')._;
|
var _ = require('underscore')._;
|
||||||
|
|
||||||
var charybdis = function(dbot) {
|
var atheme = function(dbot) {
|
||||||
this.commands = {
|
this.commands = {
|
||||||
'~chanserv': function(event) {
|
'~chanserv': function(event) {
|
||||||
if(_.has(this.config.chanserv, event.input[1])) {
|
if(_.has(this.config.chanserv, event.input[1])) {
|
||||||
@ -22,10 +22,10 @@ var charybdis = function(dbot) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.commands['~chanserv'].regex = [/^chanserv (\+.)/, 2]
|
this.commands['~chanserv'].regex = [/^chanserv (\+.)/, 2];
|
||||||
this.commands['~chanmode'].regex = [/^chanmode (\+.)/, 2]
|
this.commands['~chanmode'].regex = [/^chanmode (\+.)/, 2];
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.fetch = function(dbot) {
|
exports.fetch = function(dbot) {
|
||||||
return new charybdis(dbot);
|
return new atheme(dbot);
|
||||||
};
|
};
|
Loading…
Reference in New Issue
Block a user