3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-26 20:52:39 +01:00
dbot/modules/ctcp/ctcp.js

14 lines
310 B
JavaScript

var ctcp = function(dbot) {
var commands = {
"\x01VERSION\x01": function(event) {
event.replyNotice("\x01VERSION " + dbot.config.version + "\x01");
}
}
this.commands = commands;
this.on = 'PRIVMSG';
};
exports.fetch = function(dbot) {
return new ctcp(dbot);
};