$ [sudo] pip install virtualenv
Use sudo if there's permission issue.
virtualenv name_of_your_bot
This command will generate a virtualenv only for your bot. Active it using the command below:
source name_of_your_bot/bin/activate
pip install slackclient pyopenssl ndg-httpsclient pyasn1
Please follow: https://www.fullstackpython.com/blog/build-first-slack-bot-python.html
Copy print_bot_id.py and slack_stylizebot.py into name_of_your_bot. Change the BOT_NAME to yours in this line of print_bot_id.py.
BOT_NAME = 'somatic-stylebot'
export SOMATIC_API_KEY='your somatic_api_key pasted here'
export SLACK_BOT_TOKEN='your slack token pasted here'
export BOT_ID='bot id returned by python print_bot_id.py'
python slack_stylizebot.py
This command above will start the bot. Play with it in slack!
##Notice
When passing an image link to the bot, make sure the link is a real image.