diff --git a/script/order_bot_program_module_custom/setting.py b/script/order_bot_program_module_custom/setting.py index 4d72aaa..3b8cf8f 100644 --- a/script/order_bot_program_module_custom/setting.py +++ b/script/order_bot_program_module_custom/setting.py @@ -24,13 +24,22 @@ '幾點':'what_time', '時間':'what_time', } +try: + from dialogue_section.order_meal import order_meal + module_data_dict["餐"]=order_meal +except: + pass + +import dialogue_section.order_meal + for key in module_import_dict.keys(): - exec( -''' + program = ''' try: from dialogue_section.'''+module_import_dict[key]+''' import '''+module_import_dict[key]+''' module_data_dict["'''+key+'''"]='''+module_import_dict[key]+''' except: pass ''' - ) \ No newline at end of file + exec(program) + # print(program) +print(module_data_dict)