diff --git a/.vscode/settings.json b/.vscode/settings.json index cba8ec5..52d7ede 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,6 @@ { "editor.codeActionsOnSave": { - "source.fixAll.eslint": true + "source.fixAll.eslint": "explicit" }, "editor.formatOnSave": false, "typescript.implementationsCodeLens.enabled": true, diff --git a/bot/src/commands/fit/Activity.ts b/bot/src/commands/fit/Activity.ts index 0090949..b12d743 100644 --- a/bot/src/commands/fit/Activity.ts +++ b/bot/src/commands/fit/Activity.ts @@ -60,7 +60,10 @@ export const type = { Crossfit: "Crossfit", VirtualRide: "VirtualRide", RockClimbing: "RockClimbing", - WeightTraining: "WeightTraining" + WeightTraining: "WeightTraining", + Pickleball: "Pickleball", + Golf: "Golf", + Swim: "Swim" }; export const heartRate = (a: activity) : heartRate | null => diff --git a/bot/src/commands/fit/WorkoutEmbed.ts b/bot/src/commands/fit/WorkoutEmbed.ts index f3b522b..611613b 100644 --- a/bot/src/commands/fit/WorkoutEmbed.ts +++ b/bot/src/commands/fit/WorkoutEmbed.ts @@ -110,6 +110,15 @@ const activityText = (activity: Activity.activity): string => { case type.RockClimbing: return `went rock climbing for ${elapsed}`; + case type.Golf: + return `walked ${distance} while playing golf`; + + case type.Swim: + return `swam ${distance} in ${elapsed}`; + + case type.Pickleball: + return `played pickleball for ${elapsed}`; + default: return `worked out for ${elapsed}`; }