Live data from Hacker News

Slack Poker Bot

github.com

51–60 of 100 posts

Re: Slack Poker Bot

#51
post #49

Tried it - it crashed for both games we tried. Then again, installing node on my box was a mess - we have some sort of proxy on apt-get that insisted on installing an old version. I probably screwed up somehow. Edit: https://github.com/CharlieHess/slack-poker-bot/issues/14 https://github.com/CharlieHess/slack-poker-bot/issues/22 Glad I'm not the only one.

Wrote up a workaround until I can fix it properly.

Re: Slack Poker Bot

#52

Earlier quoted context omitted.

Possibly because running a bot client is much different from running a webserver. Dialing outbound to connect to slack is much easier than figuring out or configuring your own canonical URL, opening ports, etc. On the other hand, preparing hands as a single image seems a bad way of doing this; Does the slack API only allow a single image per conversation? I agree with your preparation microservice idea - There should…

The Slack API only allows a single image URL for attachments. I was also keen on the idea of being able to swap out the card assets whenever. Unicode playing cards is a decent idea, except Slack only renders in Lato.

Does Slack accept images with data URIs instead of URLs? Seems like it'd give you the best of both worlds.

Re: Slack Poker Bot

#53

Am I correct in saying that the shuffle algorithm is flawed? It looks to me like it swaps each card iteratively with a random card in the deck. This means that some cards are likely shuffled more times that others, and some sequences are then more common than others. https://github.com/CharlieHess/slack-poker-bot/blob/master/s...

Thanks for spotting that! Fixed here: https://github.com/CharlieHess/slack-poker-bot/commit/332f39...

Since you already have the card images, any chance of having it deal actual card images versus the abbreviated format?

I can look into doing this myself and submitting a PR after I get home, as well.

Re: Slack Poker Bot

#54
post #27

Nifty! Why not define a bunch of custom emoji, one for each card, and use those instead of the big graphics at each turn? Would save massive bandwidth.

There are unicodes for the cards, e.g. 🂶🃆. Does slack support color text?

Re: Slack Poker Bot

#56

Earlier quoted context omitted.

Just a way better interface on it. Searchable history, multiple rooms inside rooms effectively. File sharing, lots of niceties that are probably possible in IRC but would take a lot of work. It has changed the way our team communicates, for me I am the only remote guy on a team of 6ish devs. I can pick and choose my hours, work when other guys are off, and still see all the comms that happened while I wasn't at my ma…

> I can pick and choose my hours, work when other guys are off, and still see all the comms that happened while I wasn't at my machine. I'm sure are features IRC cannot duplicate, but all that's necessary for that is a bouncer.

Right. Think of Slack as a really well configured IRC server, except you don't have to manage it at all, and it's front-end UI is much more modern (and better); integrated file uploading, inline media, integrations with everything under the sun, etc. None of it is impossible in IRC, it's just _easier_ in Slack because it's out of the box like that.

And, most importantly: I don't have to manage the damned server ;)

Post reply on HN