seriouslysean / monster-hunter-now-events

A tool that auto-generates calendar events for Monster Hunter Now by scraping web news articles, processing them with AI, and creating a convenient calendar subscription.
https://seriouslysean.github.io/monster-hunter-now-events/
MIT License
8 stars 9 forks source link

[Bug]: Do not dedupe events via ChatGPT if files are already up to date #21

Closed seriouslysean closed 8 months ago

seriouslysean commented 9 months ago

Bug Description

Right now the events are deduped via chatGPT every time npm start is run. We should only dedupe if new events are detected.

May need to somehow track which events.js file the current deduped file was generated from (a key or otherwise) in order to validate whether we need to regenerate or not.

Expected Behavior

Dedupe logic should not have run through the ChatGPT API.

Steps to Reproduce (Optional)

  1. Run npm start
  2. Verify dedupe logic runs and chat GPT is called with the contents of events.raw.json