mattmakai / slack-starterbot

Python-powered simple starter Slack bot.
https://www.fullstackpython.com/blog/build-first-slack-bot-python.html
MIT License
197 stars 146 forks source link

pass variables from Slack in my python code #11

Closed denitiu closed 6 years ago

denitiu commented 6 years ago

Hi Matt,

I came upon your python Bot integration to Slack tutorial. I found it very useful and easy to use, however, I have a question regarding the action of passing variables to functions.

I came upon a python-jenkins library that is able do some basic automation steps. Below are some examples. The problem I have is that "empty" is a hard-coded name value. server.build_job('empty') server.disable_job('empty')

Are you aware of any way of importing variables from Slack message into my function, e.g. build_job?

Thank you for your time, Andreea.