diff options
Diffstat (limited to 'modules/roboctl')
-rw-r--r-- | modules/roboctl/index.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/roboctl/index.js b/modules/roboctl/index.js index bef53109..ac92c969 100644 --- a/modules/roboctl/index.js +++ b/modules/roboctl/index.js @@ -1,5 +1,9 @@ + +nick = /(^|\n) *Name *= *(\S*) *($|\n)/ + .exec(require('fs').readFileSync('/etc/tinc/retiolum/tinc.conf'))[2]; + var config = { - "nick": "roboctl", + "nick": nick + '-krebs', "server": "irc.freenode.net", "port": 6667, "channel": "#tincspasm" @@ -9,6 +13,6 @@ irc = require('./lib/irc').createClient(config); // TODO call back when joined irc.connect(function () { - console.log('like a boss'); + console.log('like a boss: ' + nick); //irc.write(); }); |