Created
August 5, 2015 11:22
-
-
Save tnayuki/ba35d5d048b4cbbd90eb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import readline | |
import time | |
from line import LineClient, LineGroup, LineContact | |
client = LineClient(authToken="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx") | |
contact = client.getContactByName("りんな") | |
while True: | |
message = raw_input("> ") | |
contact.sendMessage(message) | |
time.sleep(1) #手抜き | |
print "りんな: " + contact.getRecentMessages(count=1)[0].text | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment