Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #138 from sishen/master

User can invite robot to join channels in irc
  • Loading branch information...
commit cc2508e2f98ecd70bf15abe0ae35799f073beb64 2 parents 463dea0 + e9cbaad
Tom Bell tombell authored

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. +4 0 src/hubot/irc.coffee
4 src/hubot/irc.coffee
@@ -94,6 +94,10 @@ class IrcBot extends Robot
94 94 bot.addListener 'kick', (channel, who, _by, reason) ->
95 95 console.log('%s was kicked from %s by %s: %s', who, channel, _by, reason)
96 96
  97 + bot.addListener 'invite', (channel, from) ->
  98 + console.log('%s invite you to join %s', from, channel)
  99 + bot.join channel
  100 +
97 101 @bot = bot
98 102
99 103 module.exports = IrcBot

0 comments on commit cc2508e

Please sign in to comment.
Something went wrong with that request. Please try again.