Created
August 5, 2019 21:34
-
-
Save Fleker/f2866ef61cd290319eb76afc211b6a78 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.intent('Current', (conv: Conv) => { | |
const track = conv.data.currentTrack | |
if (!track) { | |
conv.ask('Sorry, I don\'t think anything is playing. What do you want to listen to?') | |
conv.ask(getSuggestions(conv.data.json.tracks)) | |
return | |
} | |
conv.ask(`This is ${track.track_title} from Tabletop Audio. ${track.flavor_text}`) | |
conv.ask(getSuggestions(conv.data.json.tracks)) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment