Skip to content

Latest commit

 

History

History
63 lines (57 loc) · 1.51 KB

README.md

File metadata and controls

63 lines (57 loc) · 1.51 KB

SparkBotCmd

Spark API cmd in chat room with the support of the bot.

Why

The idea is simple: Why I can't used my chat space to drive my spark? This can be useful for:

  • Manage Cisco Spark environment (rooms, teams...)
  • Manage production bot by setting the bot token to this app, you ca have the list of webhook, rooms... where the bot is and use
  • Last chance of mirroring (room vs room chat replication)

Credit

Features

Features list

ToDo

  • Second parameter of some commands
  • Set token valid on environment (can be session)
  • Detail of items (by detail option in arg list?)

Install

  • Clone localy
git clone https://github.com/guillain/SparkBotCmd.git
  • Go into the folder
cd ServiceDeskBot
  • Install dependencies
npm install
  • Put your CSV file (named km.csv) in the conf folder (key->txt structure)
cp [your CSV file] conf/km.csv
cp config.js.default config.js
vi config.js
  • Run the application, two configuration availables
    • For the dev, node is used
./app manual
    • For the prod, pm2 is used (install also this dependency)
./app [start|stop|restart|show|staus|log]
  • Add the bot in Cisco Spark space and chat with him
    • In 1:1
@ roomsGet
    • In team chat
@SparkBotCmd roomsGet