News for hackers. Stuff that matters.
Re:Building Slack Bots for Fun: A Serverless Release Gong by cjsaylor on Friday November 16, 2018 @04:09PM (#18471984)
I've also created a slack bot for fun to allow slack teammates to play chess within slack: https://github.com/cjsaylor/chessbot. The bot I built is a more traditional server setup, however I did briefly consider using a serverless setup for it.

The serverless pipeline seems a lot more complex than the actual application to send the message to a slack channel. I wonder if things like Github's actions would replace the need to have a serverless thing for notifications of this kind (at least within the confines of Github's ecosystem).

Re:Building Slack Bots for Fun: A Serverless Release Gong by tptacek on Friday November 16, 2018 @04:56PM (#18472289)
That's funny, I built the same thing for our Slack (I wish I'd known about notnil/chess; I tediously wrote out the rules for chess). I managed to do without assets, though, except for a typeface that had chess piece glyphs. :)
Re:Building Slack Bots for Fun: A Serverless Release Gong by cjsaylor on Friday November 16, 2018 @09:02PM (#18473466)
I first started down the text path, but not being able to "highlight" previous plays and check turned me towards generating graphics instead.
Re:Building Slack Bots for Fun: A Serverless Release Gong by tptacek on Friday November 16, 2018 @09:07PM (#18473484)
Oh, it's not text; I render a PNG too. I just use the glyphs from the typeface for the pieces, and draw the board in code.
Re:Building Slack Bots for Fun: A Serverless Release Gong by cjsaylor on Saturday November 17, 2018 @09:24AM (#18475620)
I think I tried the same thing, but shipping with the font included presented some licensing concerns. Also, I had a hard time getting it to line up exactly how I wanted, so ultimately I went on to assets.