Permalink
Browse files

Fixed gf3/Jerk#9. Added reference to underlaying irc library to jerkbot.

  • Loading branch information...
1 parent fcf6e6b commit 512c037211e1614efaf12d6a5561c0af54ed9c85 @jsyrjala committed Aug 6, 2011
Showing with 5 additions and 1 deletion.
  1. +4 −1 examples/simple.js
  2. +1 −0 lib/jerk.js
View
@@ -5,7 +5,10 @@ var options =
, port: 6667
, nick: 'Bot9121'
, channels: [ '#jerkbot' ]
- , onConnect: function() { bot.say('#jerkbot', 'Hello Everybody!') }
+ , onConnect: function() {
+ bot.say('#jerkbot', 'Hello Everybody!')
+ bot.irc.topic('#jerkbot', 'The topic is foobar')
+ }
};
bot = jerk( function( j ) {
View
@@ -49,6 +49,7 @@ Jerk = new ( function Jerk() {
return { say: _privmsg_protected.bind( this )
, action: _bot_do( function( to, msg ) { return bot.privmsg( to, '\001ACTION ' + msg + '\001' ) } ).bind( this )
, ctcp: _ctcp_protected.bind( this )
+ , irc: bot
, part: _bot_do( 'part' ).bind( this )
, join: _bot_do( 'join' ).bind( this )
, quit: _bot_do( 'quit' ).bind( this )

0 comments on commit 512c037

Please sign in to comment.