🤖 Interactive Slackbot talking to Ava API
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
avabot
.gitignore
.travis.yml
.venv
Dockerfile
LICENSE
README.md
docker-compose.yml
requirements.txt
run.py

README.md

ava-slackbot

Build Status

Welcome to ava-slackbot!

This project is our in-house Slackbot, allowing us to interact with the Image Intelligence API (Ava).

Installation

  1. Clone the project:

    git clone git@github.com:ImageIntelligence/ava-slackbot.git
  2. Install docker and docker-compose:

    brew install docker-compose
    brew install cask
    brew cask install docker
    brew cask install docker-toolbox
  3. Obtain *.env.list files from another developer.

  4. Start the container:

    docker-compose run --rm ava-slackbot sh
    python run.py

Development

  1. (optional) Setup your host's local environment (IDE support):

    mkvirtualenv --python=/usr/local/bin/python3 ava-slackbot
    pip install -r requirements.txt
  2. Clean your project of cache files:

    find . -type f -name "*.pyc" -delete
    find . -type d -name "__pycache__" -delete
  3. PEP8 your Python code:

    pep8 ./ --ignore=E501,E701

Testing

Tests are written using pytest. To run the test suite:

docker-compose run --rm ava-slackbot-test sh
python -m pytest avabot/tests