chrismo / hubot-poker

Hubot script to play stupid versions of poker with SecurID tokens.
MIT License
1 stars 2 forks source link

Install guides? #17

Open mvaneijgen opened 9 years ago

mvaneijgen commented 9 years ago

Im fairly new to Slack and was thinking around with Hubot,installed a few script now, but im really lost how to install this. Is there a step by step guide?

chrismo commented 9 years ago

Hubot has excellent documentation on how to get up and running, if you need it: https://hubot.github.com/docs/

It includes a link to the Slack adapter, and it has instructions in its README: https://github.com/slackhq/hubot-slack

Once you've done that, to get hubot-poker added, just add this to the package.json dependencies section:

   "hubot-poker": "git://github.com/chrismo/hubot-poker.git"
mvaneijgen commented 9 years ago

Done that and hubot runs fine, but doesn't reopened to poker help or hutor poker help

mvaneijgen commented 9 years ago

Hey, made a sceencast of my setup, hope it helps. http://youtu.be/F1mR-o9y2HU

chrismo commented 9 years ago

do any of the poker commands show if you issue a general help command?

the screencast is telling me: "This video is a duplicate of a previously uploaded video." :/

mvaneijgen commented 9 years ago

No poker does not show in the help commands. and sorry here is the right one http://youtu.be/F1mR-o9y2HU

chrismo commented 9 years ago

OH! I may have overlooked mentioning an ENV to put the bot into a room. ... Ok, I think this is a bug. The original idea of the code was to only restrict the rooms the bot serves poker in based on the existence of the TOKEN_POKER_ROOMS ENV var. But I think in practice, if that ENV isn't set, then it's not in ANY room. So, try launching the hubot instance with TOKEN_POKER_ROOMS=slack-channel

You can do multiple rooms with a comma delimited list, and you don't need the # prefix. It will also work in private groups.

mvaneijgen commented 9 years ago

so I should add heroku config:add TOKEN_POKER_ROOMS=games ?

mvaneijgen commented 9 years ago

My Hubot now has to TOKEN_POKER_ROOMS of games, but it still is not working. Anything else I should add?

chrismo commented 9 years ago

Do you have a slack channel called games?

mvaneijgen commented 9 years ago

new: screencast: https://www.youtube.com/watch?v=No5XZotnyeI&feature=youtu.be Yes that where my Hubot is invited to and that channel is called #games

chrismo commented 9 years ago

(sorry this isn't working well - you're probably the first ever to try it out!! Lucky you, eh? Thanks for your patience and feedback - it's appreciated)

chrismo commented 9 years ago

It would appear from the video the scripts aren't loading and/or it's just not activating in your room. There might be some logging output, if you can try to look for that. Also, we haven't tried this on Heroku at LivingSocial, we host it from one of our own boxes, so there could be something dumb I'm doing that only works internally, though I can't think of anything off-hand.

Unfortunately, I can't give any more time to this now, but if you're able to troubleshoot this in your Heroku install, post anything you find here, and I'll come back to this later.