|
@@ -6,6 +6,7 @@ import output
|
|
|
import current_time
|
|
import current_time
|
|
|
import help
|
|
import help
|
|
|
import echo
|
|
import echo
|
|
|
|
|
+import duckduckgo_answers
|
|
|
|
|
|
|
|
def _get_services():
|
|
def _get_services():
|
|
|
services = {
|
|
services = {
|
|
@@ -14,6 +15,7 @@ def _get_services():
|
|
|
'todo': todo_wunderlist.Wunderlist(False),
|
|
'todo': todo_wunderlist.Wunderlist(False),
|
|
|
'time': current_time.CurrentTime('Europe/Dublin'),
|
|
'time': current_time.CurrentTime('Europe/Dublin'),
|
|
|
'echo': echo.Echo(),
|
|
'echo': echo.Echo(),
|
|
|
|
|
+ 'duck': duckduckgo_answers.DuckDuckGo(),
|
|
|
#'play': music.Music(),
|
|
#'play': music.Music(),
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -29,7 +31,7 @@ def launch_services(interrupted):
|
|
|
t = threading.Thread(target=s.init)
|
|
t = threading.Thread(target=s.init)
|
|
|
t.start()
|
|
t.start()
|
|
|
|
|
|
|
|
- output.tts('Ready.')
|
|
|
|
|
|
|
+ output.text('Ready.')
|
|
|
|
|
|
|
|
while not interrupted():
|
|
while not interrupted():
|
|
|
t = input_sources.get_token(1)
|
|
t = input_sources.get_token(1)
|