diff --git a/src/irc.coffee b/src/irc.coffee index 2c425d2..4d70cbb 100644 --- a/src/irc.coffee +++ b/src/irc.coffee @@ -8,6 +8,14 @@ Response = require('hubot').Response Irc = require 'irc' class IrcBot extends Adapter + constructor: (@robot) -> + super @robot + + @robot.notice = (user, strings...) -> + @adapter.notice user, strings... + + @robot.Response = IrcResponse + send: (user, strings...) -> for str in strings if not str?