You’re welcome to look at GitHub - markschmucker/discourse-506investor-digest-plugin · GitHub. It sends all posts- not just a few like the standard digest emails. It also sends the most-liked post (we put that post at the top of our custom digest).
The endpoint is hard-coded so you’d have to change that.
This will override the standard digests.