Пример #1
0
def run(msg):
    """Return a random tweet from the modernseinfeld account."""
    # Do some twitter stuff
    result = twitter.randomtweet(1000262514)
    if result:
        return ({'action': 'send_msg', 'payload': result},)
    else:
        return None
Пример #2
0
def run(msg):
    """Return a random tweet from statscanada."""
    # Do some twitter stuff
    result = twitter.randomtweet(701267743)
    if result:
        return ({'action': 'send_msg', 'payload': result},)
    else:
        return None