Fix the Sourcegraph.com license expiration bot
Created by: dadlerj
I built a bot that only functions on Sourcegraph.com that posts a note to our sales team whenever a customer license is about to expire. It mostly doesn't work, but once in a while something will randomly appear (see the #licenses channel).
The bot is defined in https://sourcegraph.com/github.com/sourcegraph/sourcegraph/-/blob/enterprise/cmd/frontend/internal/dotcom/productsubscription/license_expiration.go.
I've tested locally and it always seems to work just fine. Perhaps something is broken on dotcom due to having multiple frontends? Perhaps my date/time logic is off somehow? Perhaps the webhook env var sometimes isn't set? I'm quite lost.