Skip to content

Commit

Permalink
Close unimplemented modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
zake7749 committed Nov 23, 2016
1 parent 808cefe commit 9f8d534
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions Chatbot/task_modules/module_switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,16 @@ def get_handler(self, domain):
handler = medicine.MedicalListener(self.console)
elif domain=="天氣":
handler = Weather(self.console)
elif domain=="股票":
handler = Stock(self.console)
elif domain=="購買":
handler = purchase.PurchaseOperator(self.console)
elif domain=="吃喝玩樂":
handler = entertainment.entertainment(self.console)
elif domain=="住宿":
handler = hotel.HotelListener(self.console)
else:
pass
"""

"""
#elif domain=="股票":
# handler = Stock(self.console)
#elif domain=="購買":
# handler = purchase.PurchaseOperator(self.console)
#elif domain=="吃喝玩樂":
# handler = entertainment.entertainment(self.console)
#elif domain=="住宿":
# handler = hotel.HotelListener(self.console)
else:
pass
#print("[module_switch]: undefined module name '%s'" % domain)
return handler

0 comments on commit 9f8d534

Please sign in to comment.