Skip to content

Commit

Permalink
Implement random emoji with an appropriate pool
Browse files Browse the repository at this point in the history
  • Loading branch information
InvalidPathException committed Aug 10, 2024
1 parent 7347e24 commit 262ee80
Showing 1 changed file with 65 additions and 1 deletion.
66 changes: 65 additions & 1 deletion src/reminders/dueTodayReminder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,72 @@ export const dueTodayReminder = async () => {
const unassignedItems = filterForUnassigned(nonBacklogItems);
const urgentItems = filterForUrgentItems(nonBacklogItems);

const emojis = [
"🎉",
"🚀",
"📅",
"🔔",
"📌",
"📍",
"✨",
"🌟",
"💡",
"🔍",
"📈",
"🏆",
"🛠",
"🖌",
"📝",
"🗂",
"📊",
"📚",
"🔖",
"🔗",
"📎",
"💼",
"🗓",
"🚧",
"🎯",
"🧭",
"🎈",
"🎠",
"🏁",
"✅",
"📜",
"📖",
"🔑",
"🎁",
"🔓",
"🔧",
"🔨",
"🛏",
"🧹",
"🔥",
"🕯",
"🛋",
"🪑",
"🚪",
"🪟",
"🧸",
"🖼",
"🛒",
"🎊",
"📯",
"💖",
"💫",
"🌈",
"🎶",
"💻",
"🖥",
"🖨",
"🖱",
"🕹",
"🗜",
];
const randomEmoji = emojis[Math.floor(Math.random() * emojis.length)];

const message = {
title: "Daily Task Reminder 🎉",
title: `Daily Task Reminder ${randomEmoji}`,
message:
urgentItems.length === 0 && unassignedItems.length === 0
? "Nothing urgent or unassigned today! 🐀🥂"
Expand Down

0 comments on commit 262ee80

Please sign in to comment.