hubot-python-scripts icon indicating copy to clipboard operation
hubot-python-scripts copied to clipboard

How do you install this?

Open mcscope opened this issue 11 years ago • 4 comments

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?

mcscope avatar Aug 15 '14 23:08 mcscope

@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.

maxgoedjen avatar Aug 16 '14 07:08 maxgoedjen

@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!

jaquesgrobler avatar Jul 20 '15 15:07 jaquesgrobler

@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.

maxgoedjen avatar Jul 28 '15 07:07 maxgoedjen

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

berttejeda avatar May 22 '16 21:05 berttejeda