3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-24 04:49:25 +01:00
dbot/modules/ctcp/ctcp.js

14 lines
310 B
JavaScript
Raw Normal View History

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);
};