From fae5177f81096c121c39c06e0e6942ab2ca273f4 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Thu, 24 Aug 2023 17:47:59 -0700 Subject: [PATCH] chore: update emoji map --- netlify/edge-functions/now-playing.js | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/netlify/edge-functions/now-playing.js b/netlify/edge-functions/now-playing.js index 297ab4d1..d56caba7 100644 --- a/netlify/edge-functions/now-playing.js +++ b/netlify/edge-functions/now-playing.js @@ -1,15 +1,25 @@ const emojiMap = (genre, artist) => { if (artist === 'David Bowie') return '👨‍🎤' + if (genre.includes('black metal')) return '🧛🏻‍♂️' + if (genre.includes('death metal')) return '💀' if (genre.includes('metal')) return '🤘' - if (genre.includes('emo')) return '😢' - if (genre.includes('alternative')) return '🎸' + if (genre.includes('emo') || genre.includes('blues')) return '😢' if (genre.includes('grind') || genre.includes('powerviolence')) return '🫨' - if (genre.includes('country') || genre.includes('americana') || genre.includes('bluegrass')) + if ( + genre.includes('country') || + genre.includes('americana') || + genre.includes('bluegrass') || + genre.includes('folk') + ) return '🪕' if (genre.includes('post-punk')) return '😔' if (genre.includes('punk') || genre.includes('hardcore')) return '✊' if (genre.includes('hip hop')) return '🎤' + if (genre.includes('progressive') || genre.includes('experimental')) return '🤓' + if (genre.includes('jazz')) return '🎺' + if (genre.includes('psychedelic')) return '💊' if (genre.includes('dance') || genre.includes('electronic')) return '💻' + if (genre.includes('alternative') || genre.includes('rock')) return '🎸' return '🎧' }