Skip to content

Commit

Permalink
Update to make selection random with bigger pool
Browse files Browse the repository at this point in the history
  • Loading branch information
InvalidPathException committed Aug 10, 2024
1 parent d06e084 commit 29451bb
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/reminders/dueTodayReminder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,18 @@ export const dueTodayReminder = async () => {
const unassignedItems = filterForUnassigned(nonBacklogItems);
const urgentItems = filterForUrgentItems(nonBacklogItems);

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

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

0 comments on commit 29451bb

Please sign in to comment.