Permalink
Browse files

Merge pull request #5 from hitzler/master

here u go m8
  • Loading branch information...
2 parents 48b7326 + 997746f commit 957db113db1e3505574089527e6cb6f0fe4db4db @Alligator committed Apr 11, 2012
Showing with 14 additions and 0 deletions.
  1. +14 −0 plugins/twitter_stream.py
@@ -0,0 +1,14 @@
+import tweetstream
+from util import hook
+
+username = ''
+password = ''
+# Horse Goons Reddit Notch
+dummies = [174958347, 413248051, 489467009, 63485337]
+
+@hook.event('001')
+def stream(inp, conn=None):
+ stream = tweetstream.FilterStream(username, password, follow=dummies)
+ for tweets in stream:
+ if tweets['user']['id'] in dummies:
+ conn.cmd('PRIVMSG #sa-minecraft @%s: %s - http://twitter.com/#!/%s/status/%s' % (tweets['user']['screen_name'], tweets['text'], tweets['user']['screen_name'], tweets['id']))

0 comments on commit 957db11

Please sign in to comment.