Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
JingShing committed Dec 20, 2022
1 parent af6015e commit eadc2d1
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions script/order_bot_program_module_custom/setting.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
'''
)
exec(program)
# print(program)
print(module_data_dict)

0 comments on commit eadc2d1

Please sign in to comment.