WalshyDev / cf-status-worker

Cloudflare Worker to monitor the Status Pages for incidents and send notifications to Discord
MIT License
51 stars 20 forks source link

fix: embed description and field value limit #12

Closed Le0Developer closed 3 months ago

Le0Developer commented 11 months ago

The recent Power outage related Incident became so long that it exceeded the embed limit and stopped updating.

This PR will automatically discard older updates in favor of more recent ones. The field value limit wasn't hit, but I updated the same logic there as well.

MattIPv4 commented 10 months ago

👋 Just an FYI that I incorporated some of this into #14, but tweaked how it works a bit to be more flexible down the road (allowing for customisable suffixes, having the incident link in the suffix, etc.)