Created
April 23, 2017 04:17
-
-
Save Danetag/a0903de69eb03cb4e89f5b4b97817203 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
| const speakTag = function speakTag(content) { | |
| return `<speak>${content}</speak>`; | |
| }; | |
| const audioTag = function audioTag(src, name) { | |
| return `<audio src="${src}">${name}</audio>`; | |
| }; | |
| const CONFIG = require('./config.json'); | |
| module.exports = { | |
| AUDIO_TAG: audioTag, | |
| SPEAK_TAG: speakTag, | |
| ERROR: () => { | |
| const audio = audioTag(CONFIG.actions.sorryUrl, 'sorry'); | |
| const intro = 'An issue occured. Is it... ?'; | |
| return speakTag(intro + audio); | |
| }, | |
| WELCOME: 'Hey I am Mood Mixer. What mood are you in?', | |
| WELCOME_FIRST_TIME: (username) => `Hey I am Mood Mixer. I will help you make a playlist based the mood you want. Let me know if there any genres and artists you want to be based on. And how long or short you want to playlist to be. Once we make a playlist you like I am able to save it to your account, ${username}. Do you want to try it out by giving me some moods to build the playlist on?`, | |
| RESULT: (moods, genres, artists) => `Okay, I have some ideas ${moods} ${genres} ${artists}. Do you want to preview some songs or save the playlist?`, | |
| REQUEST_MOOD_START: (moods) => `a ${moods} playlist`, | |
| REQUEST_GENRE_START: (genres) => `a ${genres} playlist`, | |
| REQUEST_GENRE_CONTINUE: (genres) => `with some ${genres}`, | |
| REQUEST_ARTIST_START: (artists) => `a playlist based on ${artists}`, | |
| REQUEST_ARTIST_CONTINUE: (artists) => `based on ${artists}`, | |
| RESULT_FAILED: 'I don\'t have enough information for your perfect playlist! What kind of music do you like?', | |
| PLAY_FIRST_SONG: (audio) => `Here\'s the first song ${audio}`, | |
| PLAY_SECOND_SONG: (audio) => `Here\'s the second song ${audio}`, | |
| PLAY_N_SONG: (audio) => `Here\'s the next song ${audio}`, | |
| PLAY_N_SONG_2: (audio) => `How is this sounding? ${audio}`, | |
| WHAT_DO_YOU_THINK: 'What do you think?', | |
| ENGAGE_NEXT_SONG_OR_SAVE: 'Do you want to listen to the next song or save the playlist?', | |
| APPROVE_SONG: 'Ok, cool! ', | |
| APPROVE_SONG_PLUS: 'Ok, cool! it will ', | |
| MORE_MOOD: (moods) => `Ok, it\'s ${moods} . `, | |
| LESS_MOOD: (moods) => `Ok, it\'s less ${moods} . `, | |
| MORE_ARTIST: (artists) => `Ok, ${artists} is included. `, | |
| LESS_ARTIST: (artists) => `Ok, I removed ${artists} from the mix. `, | |
| MORE_GENRE: (genres) => `Ok, let\'s throw in some ${genres} ! `, | |
| LESS_GENRE: (genres) => `Ok, let\'s remove ${genres} . `, | |
| NO_PREVIEW: (name, artist) => `I don\'t have any preview for ${name} by ${artist}. Do you want to listen to the next song or save the playlist?`, | |
| DISAPPROVE_SONG: 'Okay, I\’ll try something different. ', | |
| ADD_MOOD: (mood) => `Ok, it\'s more ${mood} now! `, | |
| REMOVE_MOOD: (mood) => `Ok, it\'s less ${mood}. `, | |
| ADD_GENRE: (genre) => `Ok, I added some ${genre}! `, | |
| REMOVE_GENRE: (genre) => `Ok, I removed some ${genre}. `, | |
| ADD_ARTIST: (artist) => `Ok, your playlist will sound more like ${artist}! `, | |
| REMOVE_ARTIST: (artist) => `Ok, you don\'t want ${artist}. `, | |
| NAME_PLAYLIST: 'What do you want to name the playlist?', | |
| PLAYLIST_SAVED_AND_EXIT: (name) => `Got it, your playlist ${name}, is saved. Talk to you soon!`, | |
| NO_MORE_SONGS: 'There\'s no more songs to preview! Do you want to save the current playlist?', | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment