diff --git a/responses.txt b/responses.txt new file mode 100644 index 0000000..4c8f474 --- /dev/null +++ b/responses.txt @@ -0,0 +1,42 @@ +beerchat-proxy_1 | message { +beerchat-proxy_1 | type: 'privmsg', +beerchat-proxy_1 | nick: 'BuckarooBanzai', +beerchat-proxy_1 | ident: '~BuckarooB', +beerchat-proxy_1 | hostname: '238-51-106-109.dyn.cable.fcom.ch', +beerchat-proxy_1 | target: '#pandorabox', +beerchat-proxy_1 | group: undefined, +beerchat-proxy_1 | message: 'test :)', +beerchat-proxy_1 | tags: {}, +beerchat-proxy_1 | time: undefined, +beerchat-proxy_1 | account: undefined, +beerchat-proxy_1 | reply: [Function] +beerchat-proxy_1 | } + +beerchat-proxy_1 | message { +beerchat-proxy_1 | type: 'privmsg', +beerchat-proxy_1 | nick: 'BuckarooBanzai', +beerchat-proxy_1 | ident: '~BuckarooB', +beerchat-proxy_1 | hostname: '238-51-106-109.dyn.cable.fcom.ch', +beerchat-proxy_1 | target: '#pandorabox', +beerchat-proxy_1 | group: undefined, +beerchat-proxy_1 | message: 'test pandorabot', +beerchat-proxy_1 | tags: {}, +beerchat-proxy_1 | time: undefined, +beerchat-proxy_1 | account: undefined, +beerchat-proxy_1 | reply: [Function] +beerchat-proxy_1 | } + +beerchat-proxy_1 | message { +beerchat-proxy_1 | type: 'privmsg', +beerchat-proxy_1 | nick: 'BuckarooBanzai', +beerchat-proxy_1 | ident: '~BuckarooB', +beerchat-proxy_1 | hostname: '238-51-106-109.dyn.cable.fcom.ch', +beerchat-proxy_1 | target: 'pandorabot', +beerchat-proxy_1 | group: undefined, +beerchat-proxy_1 | message: 'xy z', +beerchat-proxy_1 | tags: {}, +beerchat-proxy_1 | time: undefined, +beerchat-proxy_1 | account: undefined, +beerchat-proxy_1 | reply: [Function] +beerchat-proxy_1 | } + diff --git a/src/channel.js b/src/channel.js index e67aac2..ac84aba 100644 --- a/src/channel.js +++ b/src/channel.js @@ -4,7 +4,7 @@ const irc_client = require("./irc_client"); module.exports = new Promise((resolve, reject) => { irc_client.on('registered', function() { - var channel = client.channel("#" + IRC_CHANNEL); + var channel = irc_client.channel("#" + IRC_CHANNEL); channel.join(); channel.say(`beerchat_proxy connected!`);