File tree Expand file tree Collapse file tree 1 file changed +18
-9
lines changed
script/order_bot_program_module Expand file tree Collapse file tree 1 file changed +18
-9
lines changed Original file line number Diff line number Diff line change 33 'bot_reply' :'' }
44module_data_dict = dict ()
55
6+ # exit
67try :
78 import sys
89 module_data_dict ['離開' ]= sys .exit
910 module_data_dict ['結束' ]= sys .exit
1011except :
1112 pass
1213
13- # import hello
14+ # dialogue
15+ # hello
1416try :
1517 from dialogue_section .hello import hello
1618 module_data_dict ['你好' ]= hello
1719except :
1820 pass
19-
20- # import my name
21+ # my name
2122try :
2223 from dialogue_section .my_name import my_name
2324 module_data_dict ['我是' ]= my_name
2425 module_data_dict ['我的名字是' ]= my_name
2526except :
2627 pass
27-
28+ # what eat
2829try :
2930 from dialogue_section .what_eat import what_eat
3031 module_data_dict ['吃的' ]= what_eat
3132except :
3233 pass
33-
34+ # fake rate
3435try :
3536 from dialogue_section .fake_rate import fake_rate
3637 module_data_dict ['機率' ]= fake_rate
3738except :
3839 pass
40+ # what time
41+ try :
42+ from dialogue_section .what_time import what_time
43+ module_data_dict ['幾點' ]= what_time
44+ module_data_dict ['時間' ]= what_time
45+ except :
46+ pass
3947
48+ # calculater
4049# order meal
4150try :
4251 from dialogue_section .order_meal import order_meal
4352 module_data_dict ['餐' ]= order_meal
4453except :
4554 pass
4655
56+ # equation
4757try :
48- from dialogue_section .what_time import what_time
49- module_data_dict ['幾點' ]= what_time
50- module_data_dict ['時間' ]= what_time
58+ from dialogue_section .equation import equation
59+ module_data_dict ['方' ]= equation
5160except :
52- pass
61+ pass
You can’t perform that action at this time.
0 commit comments