Replace Intent invocation with specific messages

==== Protocol Notes ====
New messages on the message bus:
- mycroft.volume.increase
- mycroft.volume.decrease
pull/1092/head
Åke Forslund 2017-09-15 16:11:03 +02:00 committed by Steve Penrod
parent f756673bff
commit 23444c65ee
1 changed files with 4 additions and 6 deletions

View File

@ -96,14 +96,12 @@ class EnclosureReader(Thread):
self.ws.emit(Message("mycroft.stop"))
if "volume.up" in data:
self.ws.emit(
Message("VolumeSkill:IncreaseVolumeIntent",
{'play_sound': True}))
self.ws.emit(Message("mycroft.volume.increase",
{'play_sound': True}))
if "volume.down" in data:
self.ws.emit(
Message("VolumeSkill:DecreaseVolumeIntent",
{'play_sound': True}))
self.ws.emit(Message("mycroft.volume.decrease",
{'play_sound': True}))
if "system.test.begin" in data:
self.ws.emit(Message('recognizer_loop:sleep'))