Skip to content

Commit

Permalink
add temporary HALLOWEEN-themed snacks 🎃
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanThatOneKid authored Oct 2, 2023
1 parent 081df99 commit 0d876d1
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion api/snacks.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/*
// TODO(@EthanThatOneKid): Delete HALLOWEEN_SNACKS November 1st, 2023.
const SNACKS = [
"🍕",
"🍫",
Expand Down Expand Up @@ -28,12 +30,23 @@ const SNACKS = [
"🍙",
"🧇",
];
*/

const HALLOWEEN_SNACKS = [
"🍬",
"🍭",
"🍫",
"🍪",
"🧁",
"🎃",
"🍧",
];

/**
* pickRandom picks a random snack from the list of snacks.
*/
export function pickRandom(): string {
const randomIndex = Math.floor(Math.random() * SNACKS.length);
const randomSnack = SNACKS[randomIndex];
const randomSnack = HALLOWEEN_SNACKS[randomIndex];
return randomSnack;
}

0 comments on commit 0d876d1

Please sign in to comment.