From de52c85164a0f98dee94d62b824dd2360cd77d54 Mon Sep 17 00:00:00 2001 From: "shackspace e.V" Date: Thu, 6 May 2010 22:36:57 +0200 Subject: initial commit number two --- modules/twitter | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/twitter') diff --git a/modules/twitter b/modules/twitter index e8962657..fa4d366d 100755 --- a/modules/twitter +++ b/modules/twitter @@ -33,7 +33,7 @@ def parse(text): escape = "" if piece.startswith("@"): escape = "" - if piece[1:].lower() == "shackspace": + if piece[1:].lower() == "shackspam" or piece[1:].lower() == "shackspace": escape = "" elif piece.startswith("#"): @@ -48,16 +48,16 @@ def parse(text): return new if len(sys.argv) > 1 and sys.argv[1] == "--help": - print "read or post to the shackspace twitter timeline" + print "read or post to the shackspam twitter timeline" if len(sys.argv) == 3 and sys.argv[2] == "--verbose": print "call without parameters to read" - print "use /twitter [your tweet] to tweet something to the shackspace twitter timeline" + print "use /twitter [your tweet] to tweet something to the shackspam twitter timeline" exit() -api = twitter.Api(username="shackspace", password="0b0dallaf4lla") +api = twitter.Api(username="shackspam", password="sh4ckit") #api.SetXTwitterHeaders("Shackspace UTTERANCE","","0.00.0.01.42") @@ -93,7 +93,7 @@ else: a.reverse() for i in a: text = i.text - if i.user.screen_name.lower() == "shackspace": + if i.user.screen_name.lower() == "shackspace" or i.user.screen_name.lower() == "shackspam": info = "" + i.user.screen_name + " " + shorten(i.GetRelativeCreatedAt()) + "" else: info = "" + i.user.screen_name + " " + shorten(i.GetRelativeCreatedAt()) + "" -- cgit v1.2.3