Skip to content

Commit

Permalink
feat: add emoji and color mapping for gas and electricity events (#6)
Browse files Browse the repository at this point in the history
- added 'gas and electricity' to emojiMap with emoji '🔌'
- updated ColorEvents function to include 'gas and electricity' in the condition for setting event color to gray
  • Loading branch information
dgokcin authored Aug 27, 2024
1 parent 1d2baaf commit ac01efd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Code.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const emojiMap = {
'tamir': '🛠️',
'repair': '🛠️',
'payment': '💸',
'gas and electricity': '🔌',
};

function ColorEvents() {
Expand Down Expand Up @@ -88,7 +89,7 @@ function ColorEvents() {
} else if (originalTitle.includes("paris 2024")) {
color = CalendarApp.EventColor.BLUE;
Logger.log("Title: " + title + " - Color to print: BLUE");
} else if (originalTitle.includes("randevu") || originalTitle.includes("appointment")) {
} else if (originalTitle.includes("randevu") || originalTitle.includes("appointment") || originalTitle.includes("gas and electricity")) {
color = CalendarApp.EventColor.GRAY;
Logger.log("Title: " + title + " - Color to print: GRAY");
}
Expand Down

0 comments on commit ac01efd

Please sign in to comment.