Skip to content

Commit

Permalink
dial back intensity
Browse files Browse the repository at this point in the history
  • Loading branch information
John Ottenlips authored and John Ottenlips committed Sep 20, 2023
1 parent 1434695 commit 21aca7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import * as dotenv from "dotenv";
import { randomFourExercises } from "./plan";
dotenv.config();
export const API_URL = "https://platform.vestaboard.com";
const intensity = "easy";

const days = {
0: "sunday",
Expand All @@ -18,7 +19,7 @@ type IDays = "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "frida
const main = () => {
const day = new Date().getDay();
const dayName = days[day];
const intensity = day % 3 === 0 ? "hard" : day % 2 === 0 ? "medium" : "easy";
// const intensity = day % 3 === 0 ? "hard" : day % 2 === 0 ? "medium" : "easy";
const exercises = randomFourExercises(intensity);
const color = day % 3 === 0 ? "{63}" : day % 2 === 0 ? "{65}" : "{66}";
const text = `${color}Happy ${dayName}!${color}\nToday's WOD is:\n${exercises}`;
Expand Down

0 comments on commit 21aca7c

Please sign in to comment.