coder / codercord

A Discord bot for our community server
Creative Commons Zero v1.0 Universal
5 stars 0 forks source link

GH Release announcement #2

Closed phorcys420 closed 1 year ago

phorcys420 commented 1 year ago

The release messages in #releases don't look so good, and @bpmct suggested that we show the changelog.

Since that requires having a custom implementation for GitHub releases, we might aswell make the embed better.

Embed design

image or image (username will still be Codercord)

Implementation 1

Feeding a custom webhook to the GH repo @ coder/coder, I don't think we can really do that because it'd require us to expose a web server with a valid certificate and in the context of this project it might be a bit too overkill.

Implementation 2

Requesting to the GitHub API frequently, I think this is not so reliable because it can be very delayed.

Implementation 3 (preferred)

Using discord webhooks as a bridge, we could have a dummy channel that receives the gh stuff, then Codercord looks at new messages in that channel, then posts to #releases, that would allow for the fastest announcements without having to expose a webhook.

phorcys420 commented 1 year ago

I ended up using implementation 3 and the second release embed.

image

bpmct commented 1 year ago

Nice!