maxgoedjen / hubot-python-scripts

18 stars 3 forks source link

How do you install this? #9

Open mcscope opened 10 years ago

mcscope commented 10 years ago

Hey! I'd love to use the base you built to write my own python scripts for my hubot - but I can't figure out how I'm supposed to use this package. Can you tell me how to install it?

maxgoedjen commented 10 years ago

@mcscope right now it's unfortunately not compatible with Heroku installs of Hubot (given that, as far as I know, Heroku only supports one runtime environment at a time). Since communication between Hubot and the python scripts already occurs in a JSON message format, you could conceivably tweak it to run as its own service on a separate Heroku app, but it'd take a little work and I'm not actively maintaining this project.

jaquesgrobler commented 9 years ago

@maxgoedjen Hi there -- I just stumbled here.. I've got my Hubot running on an ubuntu server. Could I use this in that situation? if so, how? :) thanks in advance for your time!

maxgoedjen commented 9 years ago

@jaquesgrobler I'm not really supporting this anymore, but basically you should just be able to run python python_dispatch.py after installing the dependencies with pip, and use index.coffee like you would any other hubby script.

berttejeda commented 8 years ago

I got this working like so:

  1. This project is actually an npm package, as I discovered. So you can install it like so: git clone https://github.com/maxgoedjen/hubot-python-scripts npm install ./hubot-python-scripts/ --save
  2. Then add "hubot-python-scripts" to external-scripts.json
  3. Finally, you can start hubot and start testing: bin/hubot Note: The python scripts don't have help output attached to them, so you pretty much either have to add that or work by trial and error.

This triggered the action defined in scripts/right_hubot.py:

You're awesome, right, hubot?

To which he responded:

yep