注意:这个工具是用来导入到中国区节点的
依赖: gevent、requests
Ubuntu 可以
# apt-get install python-gevent python-requests
{ | |
repository(owner: "facebook", name: "mention-bot") { | |
object(expression: "master") { | |
... on Commit { | |
blame(path: "cookieJar.js") { | |
ranges { | |
startingLine | |
endingLine | |
age | |
commit { |
{ | |
repository(owner: "facebook", name: "mention-bot") { | |
object(expression: "master") { | |
... on Commit { | |
blame(path: "cookieJar.js") { | |
ranges { | |
startingLine | |
endingLine | |
age | |
commit { |
#coding=utf8 | |
import itchat | |
# tuling plugin can be get here: | |
# https://github.com/littlecodersh/EasierLife/tree/master/Plugins/Tuling | |
from tuling import get_response | |
@itchat.msg_register('Text') | |
def text_reply(msg): | |
if u'作者' in msg['Text'] or u'主人' in msg['Text']: | |
return u'你可以在这里了解他:https://github.com/littlecodersh' |
@BotFather
/newbot
and hit SendDone! Congratulations on your new bot. You will find it at t.me/new_bot.