1
0
forked from keinBot/cuffeo
This commit is contained in:
Flummi
2018-09-07 19:22:47 +02:00
parent db7e2e9f39
commit 7c8a83fa3c
17 changed files with 643 additions and 0 deletions

9
src/clients/irc/msg.mjs Normal file
View File

@@ -0,0 +1,9 @@
export default client => {
client._cmd.set("PRIVMSG", function (msg) { // privmsg
this.emit("data", msg.params[1] === "\u0001VERSION\u0001" ? ["ctcp:version", this.reply(msg)] : ["message", this.reply(msg)]);
}.bind(client));
client._cmd.set("NOTICE", function (msg) { // notice
this.emit("data", ["notice", msg.params[1]]);
}.bind(client));
};