Giter Site home page Giter Site logo

vector-slack's Introduction

WORK IN PROGRESS

Integrate Slack with Digital Dream labs (Anki's) Vector. This assumes you are connected to Digital Dream lab's cloud service, if you have the escape pod you will need to use https://github.com/cyb3rdog/vector-python-sdk/ (which I do so I'm unable to test this with the latest protobuf update I'm afraid!)

Possible commands

say <message>
show <image name>
show <image name> for <number> seconds
whats going on
play <spritesheet name>
fireworks
giggle

Requirements

Python 3.8 (for Protobuf, which Vector needs)

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.8

Slack token

You will need a classic slack app with a single scope of 'bot'. Ignore the "there are new permissions!" warnings. Add a bot user via App Home on the left, then install to your workspace and take the token beginning with xoxb

Developing

python3.8 -m venv .
source venv/bin/activate
pip install -r requirements.txt
pip install -e .

Tests

python -m unittest discover -s vectorslack/tests

Docker

docker build .
docker run -v vector_config:/root/.anki_vector -ti <image id> /bin/bash
python3.8 -m anki_vector.configure
<enter all your details>
exit
docker run -v vector_config:/root/.anki_vector -e SLACK_TOKEN -e VECTOR_SERIAL <image id>

Sprite sheets for animations

Create a PNG sprite sheet, each sprite is 184 in width, 96 in height. Two rows of five and place in

vectorslack/images

Images

Any images you want to use with the "show" command should go in vectorslack/images and be 184 pixels wide and 94 pixels high

vector-slack's People

Contributors

hbk619 avatar 56kbs avatar dependabot[bot] avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.