Skip to content

Commit

Permalink
Speak normally.
Browse files Browse the repository at this point in the history
  • Loading branch information
Benteng Ma committed Feb 5, 2024
1 parent ecd469e commit a4bfa70
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tasks/receptionist/src/receptionist/states/speakdescriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ def __init__(self, default):
self.default = default

def execute(self, userdata):
# for person in userdata['people']:
# self.default.voice.speak('I see a person')
for person in userdata['people']:
self.default.voice.speak('I see a person')

# for feature in person['features']:
# if feature.label:
# if len(feature.colours) == 0:
# self.default.voice.speak(f'They have {feature.name}.')
# continue
for feature in person['features']:
if feature.label:
if len(feature.colours) == 0:
self.default.voice.speak(f'They have {feature.name}.')
continue

# self.default.voice.speak(f'They have {feature.name} and it has the colour {feature.colours[0]}')
self.default.voice.speak(f'They have {feature.name} and it has the colour {feature.colours[0]}')

return 'succeeded'

0 comments on commit a4bfa70

Please sign in to comment.