Skip to content

Instantly share code, notes, and snippets.

@hannahherbig
Created December 22, 2011 01:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hannahherbig/1508452 to your computer and use it in GitHub Desktop.
Save hannahherbig/1508452 to your computer and use it in GitHub Desktop.
irc = require 'irc'
twitter = require 'ntwitter'
bot = new irc.Client 'irc.mcintec.net', 'node',
channels: ['#twitter']
twit = new twitter
consumer_key: ''
consumer_secret: ''
access_token_key: ''
access_token_secret: ''
twit.stream 'user', (stream) ->
stream.on 'data', (data) ->
if data.user
bot.say '#twitter', "@#{data.user.screen_name}: #{data.text}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment