We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af6015e commit eadc2d1Copy full SHA for eadc2d1
script/order_bot_program_module_custom/setting.py
@@ -24,13 +24,22 @@
24
'幾點':'what_time',
25
'時間':'what_time',
26
}
27
+try:
28
+ from dialogue_section.order_meal import order_meal
29
+ module_data_dict["餐"]=order_meal
30
+except:
31
+ pass
32
+
33
+import dialogue_section.order_meal
34
35
for key in module_import_dict.keys():
- exec(
-'''
36
+ program = '''
37
try:
38
from dialogue_section.'''+module_import_dict[key]+''' import '''+module_import_dict[key]+'''
39
module_data_dict["'''+key+'''"]='''+module_import_dict[key]+'''
40
except:
41
pass
42
'''
- )
43
+ exec(program)
44
+ # print(program)
45
+print(module_data_dict)
0 commit comments