Created
December 22, 2011 01:07
-
-
Save hannahherbig/1508452 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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