Skip to content

Commit

Permalink
rename main
Browse files Browse the repository at this point in the history
  • Loading branch information
John Ottenlips authored and John Ottenlips committed Sep 16, 2023
1 parent f21666e commit 1434695
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const days = {
} as { [key: number]: IDays };
type IDays = "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";

const randomWorkoutPlan = () => {
const main = () => {
const day = new Date().getDay();
const dayName = days[day];
const intensity = day % 3 === 0 ? "hard" : day % 2 === 0 ? "medium" : "easy";
Expand All @@ -41,4 +41,4 @@ const sendMessage = async (text: string) => {
}
};

randomWorkoutPlan();
main();

0 comments on commit 1434695

Please sign in to comment.