glinscott / leela-chess

**MOVED TO https://github.com/LeelaChessZero/leela-chess ** A chess adaption of GCP's Leela Zero
http://lczero.org
GNU General Public License v3.0
760 stars 299 forks source link

Show contents of discord's #dev-log and #announcements on site #645

Open mooskagh opened 6 years ago

mooskagh commented 6 years ago

There are many people who follow lczero project without being on discord.

It makes sense to write a discord bot who will show #dev-log and #announcement channels contents at lczero.org website (written in go).

I took a look into discord API and it seems it's pretty easy to get recent messages of a channel in markdown format.

If someone is willing to help with that, that would be appreciated.

gonzalezjo commented 6 years ago

For this feature, you would need a bot to ensure that the contents of #dev-log are up to date with the server's announcement page. This means creating another application just for Discord integration.

I suggest an alternative approach. Discord has webhook integration. Essentially, those with the right channel permissions can right-click on a channel, create a webhook, and give it a name. Discord will spit out a URL that you can post messages to, which will cause Discord to create that message in the designated channel. This makes it very practical to implement on-server support for announcements. Those with proper privileges could just write up an announcement, put it on the website, and let the site automatically post it to #dev-logs.