mirror of
https://github.com/reality/dbot.git
synced 2024-12-18 00:22:35 +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);
|
|
};
|