summaryrefslogtreecommitdiff
path: root/client/conversation.py
diff options
context:
space:
mode:
Diffstat (limited to 'client/conversation.py')
-rwxr-xr-xclient/conversation.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/client/conversation.py b/client/conversation.py
index bad5073..a5937da 100755
--- a/client/conversation.py
+++ b/client/conversation.py
@@ -3,6 +3,7 @@ from musicmode import *
from brain import Brain
from mpd import MPDClient
+
class Conversation(object):
def __init__(self, persona, mic, profile):
@@ -16,7 +17,7 @@ class Conversation(object):
"""A wrapper for querying brain."""
# check if input is meant to start the music module
- if any(x in text.upper() for x in ["SPOTIFY","MUSIC"]):
+ if any(x in text.upper() for x in ["SPOTIFY", "MUSIC"]):
# check if mpd client is running
try:
client = MPDClient()
@@ -24,7 +25,8 @@ class Conversation(object):
client.idletimeout = None
client.connect("localhost", 6600)
except:
- self.mic.say("I'm sorry. It seems that Spotify is not enabled. Please read the documentation to learn how to configure Spotify.")
+ self.mic.say(
+ "I'm sorry. It seems that Spotify is not enabled. Please read the documentation to learn how to configure Spotify.")
return
self.mic.say("Please give me a moment, I'm loading your Spotify playlists.")
@@ -32,7 +34,6 @@ class Conversation(object):
music_mode.handleForever()
return
-
self.brain.query(text)
def handleForever(self):