Skip to content

Agby/genius-bar

Repository files navigation

genius-bar

API backend for tracking mobile device with slack

  • The bot should be in #general.
  • All respond should be public in #general.
  • with heroku server.

Commands

/DeviceCheckout [device ID]

  • Respond: “@username checkout device [device ID]”
  • Push "Device [device ID] check out by @username" to the oringal channel

/DeviceList

  • Respond: a list of all Device ID | Device Name | Ownership

/DeviceReg [device ID]

  • Respond: “[Device ID] / [Device Name] registered and own by @username”

/DeviceDereg [Device ID] [reason]

  • Respond: “[Device ID] / [Device Name] de-registered by @username”

/DeviceAudit [Device iD]

  • Respond: Show the list of last 20 register / deregister / own actions

Prerequisite

run

  1. setup your command token, slack_url, sqlalchemy_url, port in config.ini

  2. open a new vm with python 3.5

  3. run python3.5 setup.py develop

  4. install requirement with pip install freeze

  5. setup DB with alembic by alembic -c config.ini upgrade head

  6. run pserver config.ini

About

For tracking device with slack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published