Beispiel #1
0
def photo_response(data):
    if "text" in data and "photo" in data["text"]:
        text = data["user"]["screen_name"]
        in_reply_to_status_id = data["id_str"]
        photo = t.take_photo()
        media_id = t.upload(photo)
        t.tweet(text=text, media_id=media_id, in_reply_to_status_id=in_reply_to_status_id)
Beispiel #2
0
def photo_response(data):
    if "text" in data and "photo" in data["text"]:
        text = data["user"]["screen_name"]
        in_reply_to_status_id = data["id_str"]
        photo = t.take_photo()
        media_id = t.upload(photo)
        t.tweet(text=text,
                media_id=media_id,
                in_reply_to_status_id=in_reply_to_status_id)
Beispiel #3
0
def time_response(data):
    if "text" in data and "time" in data["text"]:
        text = data["user"]["screen_name"] + " "
        text += datetime.datetime.now().strftime("%c")
        in_reply_to_status_id = data["id_str"]
        t.tweet(text=text, in_reply_to_status_id=in_reply_to_status_id)
Beispiel #4
0
def tweet_time():
    text = ""
    text += datetime.datetime.now().strftime("%c")
    t.tweet(text=text)
Beispiel #5
0
def tweet_photo():
    photo = t.take_photo()
    media_id = t.upload(photo)
    text = ""
    text += datetime.datetime.now().strftime("%c")
    t.tweet(text=text, media_id=media_id)
Beispiel #6
0
def time_response(data):
    if "text" in data and "time" in data["text"]:
        text = data["user"]["screen_name"] + " "
        text += datetime.datetime.now().strftime("%c")
        in_reply_to_status_id = data["id_str"]
        t.tweet(text=text, in_reply_to_status_id=in_reply_to_status_id)
Beispiel #7
0
def tweet_time():
    text = ""
    text += datetime.datetime.now().strftime("%c")
    t.tweet(text=text)
Beispiel #8
0
def tweet_photo():
    photo = t.take_photo()
    media_id = t.upload(photo)
    text = ""
    text += datetime.datetime.now().strftime("%c")
    t.tweet(text=text, media_id=media_id)