22 lines
423 B
Python
22 lines
423 B
Python
|
|
def taktyka_dialogu(state, frame):
|
|
if state['current_context'] in ['hello', 'pomoc', 'bye']:
|
|
return short_thread(state)
|
|
else:
|
|
return long_thread(state)
|
|
|
|
def short_thread(state):
|
|
if state['current_context'] == 'pomoc':
|
|
pass
|
|
#TODO
|
|
else:
|
|
return state['current_context']
|
|
|
|
def long_thread(state):
|
|
state['topics']
|
|
|
|
|
|
|
|
|
|
#todo dodać mock github api
|