gf3 / Jerk

Stupidly simple IRC bots in Javascript.
http://gf3.github.com/Jerk
The Unlicense
106 stars 17 forks source link

Add reference to underlying irc-js object #9

Closed pyropeter closed 12 years ago

pyropeter commented 13 years ago

It would be useful to know properties of the irc-js instance at times:

  j.watch_for(/^(.*?): leave/i, function (msg) {
    if (msg.match_data[1] == j.bot.options.nick)
      j.part(msg.source);
  });

At the moment, one has to call e.g. jerkinstance.say("", "foo") to get a reference to the underlying irc-js layer.

gf3 commented 13 years ago

So you'd like direct access to bot?

pyropeter commented 13 years ago

Exactly.

Maybe bot could be made the return value of jerk().connect()?