Skip to content

Commit

Permalink
Adding a command listener.
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotttf committed May 8, 2012
1 parent 9ac1fd9 commit a75a006
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/irc.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ class IrcBot extends Adapter
@bot.part channel, () ->
console.log('left %s', channel)

command: (command, strings...) ->
for str in strings
@bot.send command, str

run: ->
self = @

Expand Down

0 comments on commit a75a006

Please sign in to comment.