Skip to content

Commit eadc2d1

Browse files
authored
Add files via upload
1 parent af6015e commit eadc2d1

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

script/order_bot_program_module_custom/setting.py

+12-3
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,22 @@
2424
'幾點':'what_time',
2525
'時間':'what_time',
2626
}
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+
2735
for key in module_import_dict.keys():
28-
exec(
29-
'''
36+
program = '''
3037
try:
3138
from dialogue_section.'''+module_import_dict[key]+''' import '''+module_import_dict[key]+'''
3239
module_data_dict["'''+key+'''"]='''+module_import_dict[key]+'''
3340
except:
3441
pass
3542
'''
36-
)
43+
exec(program)
44+
# print(program)
45+
print(module_data_dict)

0 commit comments

Comments
 (0)