Live data from Hacker News

Slack Poker Bot

github.com

61–70 of 100 posts

Re: Slack Poker Bot

#63

As a new dev: How do I get npm install to run? I'm on step 4 of the instructions.

Make sure you have node and npm installed on your machine. (You can check by running "npm -v" from the command line, if you don't see anything, then take a quick google search on how to install it).

Run "npm install" in the folder directory where the package.json is visible. In this case, if you cloned or extracted this project, it would be in the slack-poker-bot folder.

Hope that helps!

Re: Slack Poker Bot

#65
post #63

As a new dev: How do I get npm install to run? I'm on step 4 of the instructions.

Make sure you have node and npm installed on your machine. (You can check by running "npm -v" from the command line, if you don't see anything, then take a quick google search on how to install it). Run "npm install" in the folder directory where the package.json is visible. In this case, if you cloned or extracted this project, it would be in the slack-poker-bot folder. Hope that helps!

Figured it out myself! Thanks :)

Re: Slack Poker Bot

#67
post #53

Earlier quoted context omitted.

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.

Are you talking about the hole cards that are DM'ed to you? That's a good suggestion; feel free to file an issue.

Re: Slack Poker Bot

#68
post #19

Earlier quoted context omitted.

It varies by state, but home poker games often aren't expressly illegal. The illegal aspect is often profiting off of running the poker game. As long as you don't implement a rake into the system and you are paying out the entire pot, you are probably good from a legal perspective although IANAL.

When I played poker at MSFT in WA state, another rule was that you couldn't bet truly blind. You had to at least look at your cards. To see your cards and bet was a 'game of skill', to not was 'gambling'.

So you couldn't play a game like Hold 'em that requires a small and big blind? Or anything requiring pre-deal antes?

Re: Slack Poker Bot

#69
post #4

The attention to detail in spec output is exemplary. Uploading to Imgur for displaying card images to users seems like a strange choice, though. Why not have the bot serve its own images up over HTTP and attach URLs to itself? I could even imagine a badges.io style image preparation microservice that could be shared by several playing-card based bot apps.

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…

Are images even necessary, anyway?

Unicode has playing card codepoints (the full 52) and playing card house codepoints (️, ️, ️, ️).

Edit: What the hell? Hacker News stripped the Unicode characters?! https://news.ycombinator.com/item?id=10156894

Re: Slack Poker Bot

#70
post #68

Earlier quoted context omitted.

When I played poker at MSFT in WA state, another rule was that you couldn't bet truly blind. You had to at least look at your cards. To see your cards and bet was a 'game of skill', to not was 'gambling'.

So you couldn't play a game like Hold 'em that requires a small and big blind? Or anything requiring pre-deal antes?

If you remove the antes in poker, then it is no longer a game of skill.

The only reason to make a bet is because of the antes, otherwise you will only play AA, as should everyone else.

Post reply on HN