mirror of
https://github.com/reality/dbot.git
synced 2024-12-25 12:12:35 +01:00
commit
4367a1a292
@ -1,7 +1,19 @@
|
|||||||
var ctcp = function(dbot) {
|
var ctcp = function(dbot) {
|
||||||
var commands = {
|
var commands = {
|
||||||
"\x01VERSION\x01": function(event) {
|
"\x01VERSION\x01": function(event) {
|
||||||
|
// the current client version
|
||||||
event.replyNotice("\x01VERSION " + dbot.config.version + "\x01");
|
event.replyNotice("\x01VERSION " + dbot.config.version + "\x01");
|
||||||
|
},
|
||||||
|
"\x01CLIENTINFO\x01": function(event){
|
||||||
|
// a list of all supported CTCP commands
|
||||||
|
event.replyNotice("\x01CLIENTINFO SOURCE VERSION USERINFO\x01");
|
||||||
|
},
|
||||||
|
"\x01SOURCE\x01": function(event){
|
||||||
|
event.replyNotice("\x01SOURCE https://github.com/reality/depressionbot\x01");
|
||||||
|
},
|
||||||
|
"\x01USERINFO\x01": function(event){
|
||||||
|
// a "witty" saying set by the user
|
||||||
|
event.replyNotice("\z01USERINFO " + dbot.config.name + "\x01");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.commands = commands;
|
this.commands = commands;
|
||||||
|
Loading…
Reference in New Issue
Block a user