Open mcscope opened 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.
@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 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.
I got this working like so:
git clone https://github.com/maxgoedjen/hubot-python-scripts
npm install ./hubot-python-scripts/ --save
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
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?