Esempio n. 1
0
def voice_consult(message):
    if message.recognition == u"查询":
        h = Handle(message.source)
        return h.consult()
    return "What are you talking about?"
Esempio n. 2
0
def word_consult(message):
    h = Handle(message.source)
    return h.consult()
Esempio n. 3
0
def webind(message):
    h = Handle(message.source)
    return h.bind(message.content)
Esempio n. 4
0
#coding:utf-8

from zccx.handle import Handle

s = Handle('o_HVEuK5VYfCGNJGc6MrwY2rFF5I')
print(s.bind(u"绑定 韩龙 B1304013!"))
print(s.bind(u"绑定 韩龙! B13040133"))
print(s.bind(u"绑定 韩龙 B13040133"))
print(s.consult())