Skip to content

Commit

Permalink
feat: extend emojiMap and event color logic (#5)
Browse files Browse the repository at this point in the history
* feat: addd bus emoji

* feat(calendar): add new emoji mappings and update color logic

- added new emoji mappings for 'call' and 'ara'
- updated color logic to include 'video call', 'call', and 'ara' for mauve color
  • Loading branch information
dgokcin authored Aug 16, 2024
1 parent d3bb401 commit 1d2baaf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Code.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const emojiMap = {
'meeting': '🤝',
'catch-up': '☕',
'video call': '📹',
'call': '📞',
'ara': '📞',
'sosyal aktivite': '🎉',
'paris 2024': '🏅',
'randevu': '📅',
Expand Down Expand Up @@ -65,7 +67,6 @@ function ColorEvents() {
}
}

// Set colors (commented out for now)
if (originalTitle.includes("interview")) {
color = CalendarApp.EventColor.YELLOW;
Logger.log("Title: " + title + " - Color to print: YELLOW");
Expand All @@ -78,7 +79,7 @@ function ColorEvents() {
} else if (originalTitle.includes("holy shred") || originalTitle.includes("holy ride")) {
color = CalendarApp.EventColor.RED;
Logger.log("Title: " + title + " - Color to print: RED");
} else if (originalTitle.startsWith("🤝 Meeting") || originalTitle.includes("catch-up")) {
} else if (originalTitle.startsWith("🤝 Meeting") || originalTitle.includes("catch-up") || originalTitle.includes("video call") || originalTitle.includes("call") || originalTitle.includes("ara")) {
color = CalendarApp.EventColor.MAUVE;
Logger.log("Title: " + title + " - Color to print: MAUVE");
} else if (originalTitle.includes("sosyal aktivite")) {
Expand Down

0 comments on commit 1d2baaf

Please sign in to comment.