mirror of
https://github.com/reality/dbot.git
synced 2024-11-30 16:09:27 +01:00
14 lines
310 B
JavaScript
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);
|
|
};
|