From 0d4bb63b3727e44c973d167be0d82c4c062648f6 Mon Sep 17 00:00:00 2001 From: schneefux Date: Fri, 22 Aug 2014 09:32:35 +0800 Subject: Minor style fixes: removed unused imports, commented-out code, etc. --- client/conversation.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'client/conversation.py') 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): -- cgit v1.3.1