Hacker News new | ask | show | jobs
by cjsaylor 2778 days ago
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).

1 comments

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. :)
I first started down the text path, but not being able to "highlight" previous plays and check turned me towards generating graphics instead.
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.
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.