Skip to content

Commit

Permalink
clarify /kenny
Browse files Browse the repository at this point in the history
  • Loading branch information
horrible-little-slime committed Aug 30, 2024
1 parent f1c1543 commit bff8794
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/oaf/src/commands/misc/kenny.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ export const data = new SlashCommandBuilder()
);

export function makeComment(data: { isHigh: boolean; isLow: boolean }) {
if (data.isHigh) return "That's high! KENNY NEED INSULIN!!!";
if (data.isLow) return "That's low! KENNY NEED SUGAR!!!";
return "That's fine.";
if (data.isHigh) return "that's high! KENNY NEED INSULIN!!!";
if (data.isLow) return "that's low! KENNY NEED SUGAR!!!";
return "that's fine.";
}

export async function execute(interaction: ChatInputCommandInteraction) {
Expand All @@ -44,7 +44,7 @@ export async function execute(interaction: ChatInputCommandInteraction) {
`Kenny's blood glucose 🩸 was ${latest.value}mg/dL ${time(
latest.date,
TimestampStyles.RelativeTime,
)}. ${makeComment(latest)}`,
)}. According to the API, ${makeComment(latest)}. According to Kenny's own statement of the range, ${makeComment({ isHigh: latest.value >= 180, isLow: latest.value <= 70 })}`,
);
} catch (error) {
return void (await interaction.editReply(
Expand Down

0 comments on commit bff8794

Please sign in to comment.