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.
2 parents f255884 + f98db8e commit 9d4e431Copy full SHA for 9d4e431
src/irc.coffee
@@ -17,6 +17,18 @@ class IrcBot extends Adapter
17
for str in strings
18
@bot.say target, str
19
20
+ emote: (envelope, strings...) ->
21
+ # Use @notice if SEND_NOTICE_MODE is set
22
+ return @notice envelope, strings if process.env.HUBOT_IRC_SEND_NOTICE_MODE?
23
+
24
+ target = @_getTargetFromEnvelope envelope
25
26
+ unless target
27
+ return console.log "ERROR: Not sure who to send to. envelope=", envelope
28
29
+ for str in strings
30
+ @bot.action target, str
31
32
notice: (envelope, strings...) ->
33
target = @_getTargetFromEnvelope envelope
34
0 commit comments