We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df2a032 commit 68c35feCopy full SHA for 68c35fe
src/irc.coffee
@@ -4,6 +4,14 @@ Adapter = require('hubot').adapter()
4
Irc = require 'irc'
5
6
class IrcBot extends Adapter
7
+ constructor: (@robot) ->
8
+ super @robot
9
+
10
+ @robot.notice = (user, strings...) ->
11
+ @adapter.notice user, strings...
12
13
+ @robot.Response = IrcResponse
14
15
send: (user, strings...) ->
16
for str in strings
17
if not str?
@@ -124,10 +132,5 @@ class IrcResponse extends Robot.Response
124
132
@robot.adapter.notice @message.user, strings...
125
133
126
134
exports.use = (robot) ->
127
- robot.notice = (user, strings...) ->
128
- @adapter.notice user, strings...
129
-
130
- robot.Response = IrcResponse
131
135
new IrcBot robot
136
0 commit comments