diff --git a/modules/Twitter.py b/modules/Twitter.py index 43e642d..f4fdeed 100644 --- a/modules/Twitter.py +++ b/modules/Twitter.py @@ -87,6 +87,13 @@ class Twitter(Module): return self.reply(connection, replypath, tweet.user.name + ': ' + tweet.text) except twitter.TwitterError as e: return self.reply(connection, replypath, 'Couldn\'t obtain status: ' + str(e)) + elif whats[1] == 'user' and len(whats) == 3: + try: + tweets = self.twit.GetUserTimeline(screen_name=whats[2], count=1, include_rts=False) + tweet = tweets[0] + return self.reply(connection, replypath, tweet.user.name + ': ' + tweet.text) + except twitter.TwitterError as e: + return self.reply(connection, replypath, 'Couldn\'t obtain status: ' + str(e)) # vi:tabstop=4:expandtab:autoindent # kate: indent-mode python;indent-width 4;replace-tabs on;