{"_id":"slack-commander","_rev":"177-22135e8a7e502aef97b7ef954c566f2f","name":"slack-commander","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.1":{"name":"slack-commander","version":"1.0.1","author":{"url":"https://github.com/lanetix/","name":"Lanetix","email":"engineering@lanetix.com"},"_id":"slack-commander@1.0.1","maintainers":[{"name":"lanetix","email":"engineering@lanetix.com"}],"homepage":"https://github.com/lanetix/node-lanetix-slack-commander/","bugs":{"url":"https://github.com/lanetix/node-lanetix-slack-commander/issues"},"dist":{"shasum":"6faae644480878774f31ce97de3f00725257dcdc","tarball":"https://registry.npmjs.org/slack-commander/-/slack-commander-1.0.1.tgz","integrity":"sha512-525UL5eJ/+1MMzjDcJrjKFnBIH9NipBVDQrV+ti6I+kkgAYP17oiISrxttFRIRCpWSWSlypXswVITZd+OJ3tdw==","signatures":[{"sig":"MEYCIQCDIn/9deLPQwG0swVxFLqOUT3uZnavbKFdKHMBtKJnPgIhALvuqFQnzWdlkZnsH8vWcQn0D+Ex5zOjfKXUvZCXj2jD","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./index.js","_from":".","_shasum":"6faae644480878774f31ce97de3f00725257dcdc","gitHead":"37d25e55c2237f57507650a1b36dcdd93fb7ebaf","scripts":{"test":"bin/test"},"_npmUser":{"name":"lanetix","email":"engineering@lanetix.com"},"licenses":[{"url":"http://www.opensource.org/licenses/mit-license.php","type":"MIT"}],"repository":{"url":"git://github.com/lanetix/node-lanetix-slack-commander.git","type":"git"},"_npmVersion":"2.1.7","description":"Listen and react to Slack Slash Commands.","directories":{},"_nodeVersion":"0.10.22","dependencies":{"boom":"^2.6.0","lodash":"^2.4.1","express":"^4.10.4","bluebird":"^2.3.11","express-boom":"^0.3.0","require-directory":"^2.0.0"},"devDependencies":{"mocha":"^2.0.1","jshint":"^2.5.10","should":"^4.3.0"}},"1.0.2":{"name":"slack-commander","version":"1.0.2","author":{"url":"https://github.com/lanetix/","name":"Lanetix","email":"engineering@lanetix.com"},"_id":"slack-commander@1.0.2","maintainers":[{"name":"lanetix","email":"engineering@lanetix.com"}],"homepage":"https://github.com/lanetix/node-lanetix-slack-commander/","bugs":{"url":"https://github.com/lanetix/node-lanetix-slack-commander/issues"},"dist":{"shasum":"2cabe0b258ca187a6f352fc9a56ce49ba79a90c6","tarball":"https://registry.npmjs.org/slack-commander/-/slack-commander-1.0.2.tgz","integrity":"sha512-IxCkfsvNcksAZcvib6GseB1tbdHfWkbzQ8vp5x3yyfLcI4dXNvT3g9wFqasSVvEZovrfMem/s50NmLavbpEqFw==","signatures":[{"sig":"MEUCIQCjSoTBWOGKTz1gLJn2fRLBoH6uoNPrrBBNA78jj9x1+AIgRmNCgMSZQs/mU7hkhoS1o+PYnIbzrKE7xDk+UZM/e+0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./index.js","_from":".","_shasum":"2cabe0b258ca187a6f352fc9a56ce49ba79a90c6","gitHead":"1865a186f4bbc270006f79e22259ae7e66345fd3","scripts":{"test":"bin/test"},"_npmUser":{"name":"lanetix","email":"engineering@lanetix.com"},"licenses":[{"url":"http://www.opensource.org/licenses/mit-license.php","type":"MIT"}],"repository":{"url":"git://github.com/lanetix/node-lanetix-slack-commander.git","type":"git"},"_npmVersion":"2.1.7","description":"Listen and react to Slack Slash Commands.","directories":{},"_nodeVersion":"0.10.22","dependencies":{"boom":"^2.6.0","lodash":"^2.4.1","express":"^4.10.4","bluebird":"^2.3.11","express-boom":"^0.3.0","require-directory":"^2.0.0"},"devDependencies":{"mocha":"^2.0.1","jshint":"^2.5.10","should":"^4.3.0"}},"1.0.3":{"name":"slack-commander","version":"1.0.3","author":{"url":"https://github.com/lanetix/","name":"Lanetix","email":"engineering@lanetix.com"},"_id":"slack-commander@1.0.3","maintainers":[{"name":"lanetix","email":"engineering@lanetix.com"}],"homepage":"https://github.com/lanetix/node-lanetix-slack-commander/","bugs":{"url":"https://github.com/lanetix/node-lanetix-slack-commander/issues"},"dist":{"shasum":"b21ff2baa9287c3bc3e461b9b2c172de259fbda7","tarball":"https://registry.npmjs.org/slack-commander/-/slack-commander-1.0.3.tgz","integrity":"sha512-KoNliPAtstd3ZWo2ynPu3I7BMRXkxE2lg7c2Qjnal1O/rmwW6OTuIhuEtgueW6TJnM1Jvipr49PP2Xfu9fSG+g==","signatures":[{"sig":"MEUCIQDVPy6vGReVlzPDR4Fzhs2HHkZewQmNk1ibMnW0TVHe0QIgYdkBaxgwoBRbRMTLVdE8M4KhEfz0x/3uRq575XhkreM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./index.js","_from":".","_shasum":"b21ff2baa9287c3bc3e461b9b2c172de259fbda7","gitHead":"3a2ae15db08705dc6aa71eae9247046fa7c97d9c","scripts":{"test":"bin/test"},"_npmUser":{"name":"lanetix","email":"engineering@lanetix.com"},"licenses":[{"url":"http://www.opensource.org/licenses/mit-license.php","type":"MIT"}],"repository":{"url":"git://github.com/lanetix/node-lanetix-slack-commander.git","type":"git"},"_npmVersion":"2.1.7","description":"Listen and react to Slack Slash Commands.","directories":{},"_nodeVersion":"0.10.22","dependencies":{"boom":"^2.6.0","lodash":"^2.4.1","express":"^4.10.4","bluebird":"^2.3.11","express-boom":"^0.3.0","require-directory":"^2.0.0"},"devDependencies":{"mocha":"^2.0.1","jshint":"^2.5.10","should":"^4.3.0"}},"1.0.4":{"name":"slack-commander","version":"1.0.4","author":{"url":"https://github.com/lanetix/","name":"Lanetix","email":"engineering@lanetix.com"},"_id":"slack-commander@1.0.4","maintainers":[{"name":"lanetix","email":"engineering@lanetix.com"}],"homepage":"https://github.com/lanetix/node-lanetix-slack-commander/","bugs":{"url":"https://github.com/lanetix/node-lanetix-slack-commander/issues"},"dist":{"shasum":"f3ff9a1d2678941a690e8f8743ef8f6648a9f3d3","tarball":"https://registry.npmjs.org/slack-commander/-/slack-commander-1.0.4.tgz","integrity":"sha512-8q5GgWMBpSEnHmBkpIsxm4DqXts9JbqVcf4oesvta8/HiJnN8edcNx4ABWgUJP4x6G4mdPuHYEMQgTCKGVHrAg==","signatures":[{"sig":"MEQCIDrYcqRiEtjTo7n0TkXyNiUukASVEQDSgW7P9Bz1YlA8AiA/R/J3N3pNul/am9ANunsYwUYTDT+mvB5zvS1vZghEUA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./index.js","_from":".","_shasum":"f3ff9a1d2678941a690e8f8743ef8f6648a9f3d3","gitHead":"f4ea7125987ccb2be26e8aa198f66bed628aecf9","scripts":{"test":"bin/test"},"_npmUser":{"name":"lanetix","email":"engineering@lanetix.com"},"licenses":[{"url":"http://www.opensource.org/licenses/mit-license.php","type":"MIT"}],"repository":{"url":"git://github.com/lanetix/node-lanetix-slack-commander.git","type":"git"},"_npmVersion":"2.1.7","description":"Listen and react to Slack Slash Commands.","directories":{},"_nodeVersion":"0.10.22","dependencies":{"boom":"^2.6.0","lodash":"^2.4.1","express":"^4.10.4","bluebird":"^2.3.11","require-directory":"^2.0.0"},"devDependencies":{"mocha":"^2.0.1","jshint":"^2.5.10","should":"^4.3.0"}},"1.1.0":{"name":"slack-commander","version":"1.1.0","author":{"url":"https://github.com/lanetix/","name":"Lanetix","email":"engineering@lanetix.com"},"_id":"slack-commander@1.1.0","maintainers":[{"name":"lanetix","email":"engineering@lanetix.com"}],"homepage":"https://github.com/lanetix/node-lanetix-slack-commander/","bugs":{"url":"https://github.com/lanetix/node-lanetix-slack-commander/issues"},"dist":{"shasum":"f96d56d3fe0d68d9467ed31bc1e960fc4b0361cb","tarball":"https://registry.npmjs.org/slack-commander/-/slack-commander-1.1.0.tgz","integrity":"sha512-j5fzVyku/n7tMnXq1Hs42k87zgVVmZ3A8naIQbg5ltLBTV8kQGmIkywGOGlDLopCU7RlZ2d8bSIoIsBmCYPSMg==","signatures":[{"sig":"MEUCIB1zwwRzck5+aBGv0/soVkkwQdZt+3je0WIfUTNs8kopAiEA6KS4BeO9aeQtHtMRiERcFKIUaSXubnOmklV4mAT2xN8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./index.js","_from":".","_shasum":"f96d56d3fe0d68d9467ed31bc1e960fc4b0361cb","gitHead":"492627b19b1d6ade6ca04d368c2a7126abf8c5fe","scripts":{"test":"bin/test"},"_npmUser":{"name":"lanetix","email":"engineering@lanetix.com"},"licenses":[{"url":"http://www.opensource.org/licenses/mit-license.php","type":"MIT"}],"repository":{"url":"git://github.com/lanetix/node-lanetix-slack-commander.git","type":"git"},"_npmVersion":"2.1.7","description":"Listen and react to Slack Slash Commands.","directories":{},"_nodeVersion":"0.10.22","dependencies":{"boom":"^2.6.0","lodash":"^2.4.1","express":"^4.10.4","bluebird":"^2.3.11","require-directory":"^2.0.0"},"devDependencies":{"mocha":"^2.0.1","jshint":"^2.5.10","should":"^4.3.0"}},"2.0.0":{"name":"slack-commander","version":"2.0.0","author":{"url":"https://github.com/lanetix/","name":"Lanetix","email":"engineering@lanetix.com"},"_id":"slack-commander@2.0.0","maintainers":[{"name":"lanetix","email":"engineering@lanetix.com"}],"homepage":"https://github.com/lanetix/node-slack-commander/","bugs":{"url":"https://github.com/lanetix/node-slack-commander/issues"},"dist":{"shasum":"bfe049ed532f7e0eb2720c7163c7701fef28b10a","tarball":"https://registry.npmjs.org/slack-commander/-/slack-commander-2.0.0.tgz","integrity":"sha512-qRJlMTF1Q2D+qSfslpKLAi9g8azVa2arPNW3okDG+zlsoFLVJmK0HdX9a+K7//MfSXGHSgw+aDzDyH5LVNZH/Q==","signatures":[{"sig":"MEUCIFujj3GFzcBu/QUEbyuj7EPK8RsgiLMgeXQN/XHO98EnAiEA/L3R3SoA+iGbz7sBhFa1HWY9zze+l2syAPpo5m/eb1k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./index.js","_from":".","_shasum":"bfe049ed532f7e0eb2720c7163c7701fef28b10a","gitHead":"621e95c650d9da77478f59539f7a8d5c1da67c49","scripts":{"lint":"bin/lint","test":"bin/test"},"_npmUser":{"name":"lanetix","email":"engineering@lanetix.com"},"licenses":[{"url":"http://www.opensource.org/licenses/mit-license.php","type":"MIT"}],"repository":{"url":"git://github.com/lanetix/node-slack-commander.git","type":"git"},"_npmVersion":"2.1.7","description":"Listen and react to Slack Slash Commands.","directories":{},"_nodeVersion":"0.10.22","dependencies":{"boom":"^2.6.0","lodash":"^2.4.1","express":"^4.10.4","bluebird":"^2.3.11","slack-notify":"^0.1.2","require-directory":"^2.0.0"},"devDependencies":{"mocha":"^2.0.1","sinon":"^1.12.2","jshint":"^2.5.10","should":"^4.3.0","proxyquire":"^1.3.0","body-parser":"^1.10.0","node-mocks-http":"^1.2.1","supertest-promised":"^0.1.0"}}},"time":{"created":"2014-12-12T17:20:45.032Z","modified":"2026-08-03T11:04:19.729Z","1.0.0":"2014-12-12T17:20:45.032Z","1.0.1":"2014-12-12T17:28:51.722Z","1.0.2":"2014-12-12T17:43:53.765Z","1.0.3":"2014-12-12T17:56:14.536Z","1.0.4":"2014-12-12T17:57:58.992Z","1.1.0":"2014-12-15T21:31:04.729Z","2.0.0":"2014-12-16T14:34:21.605Z"},"bugs":{"url":"https://github.com/lanetix/node-slack-commander/issues"},"author":{"url":"https://github.com/lanetix/","name":"Lanetix","email":"engineering@lanetix.com"},"homepage":"https://github.com/lanetix/node-slack-commander/","repository":{"url":"git://github.com/lanetix/node-slack-commander.git","type":"git"},"description":"Listen and react to Slack Slash Commands.","maintainers":[{"email":"systems@lanetix.com","name":"lanetix-system"},{"email":"jyothiss@qburst.com","name":"jyothis-qb"},{"email":"manu.kodiyan@winmore.app","name":"manu-kodiyan-winmore"},{"email":"ie_winmore_notify@deloitte.com","name":"dnm-winmore"},{"email":"mkdyanugk@gmail.com","name":"mkdyanugk"},{"email":"vigneshk@qburst.com","name":"vigneshk7"},{"email":"aswanth@qburst.com","name":"aswanth"},{"email":"sajith@qburst.com","name":"sajith.qb"},{"email":"dhiluraj@qburst.com","name":"dhiluraj-qburst"},{"email":"rohith.menon@qburst.com","name":"cdrohithmqb"},{"email":"arjun.venugopal@qburst.com","name":"arjunqb"},{"email":"renjith.ramaswamy@qburst.com","name":"renjith_ram_qburst"},{"email":"sidharth.n@qburst.com","name":"sidharth.n"},{"email":"rahul.bharadwaj@winmore.app","name":"rahulbharadwaj"},{"email":"jasif.shameem@winmore.app","name":"jasif-wm"},{"email":"arpit.shrivastava@winmore.app","name":"arpit1024"},{"email":"showvhick.nath@winmore.app","name":"showvhick-winmore"},{"email":"umesh.sahu@winmore.io","name":"umeshsahu32"},{"email":"karthik.chandran@qburst.com","name":"kaarthikchandran"},{"email":"siddlinga.reddy@winmore.io","name":"siddling"},{"email":"manoj.k@winmore.io","name":"mkdyanugk7"},{"email":"souraj.pal@winmore.io","name":"sourajpal"},{"email":"karan.parmar@winmore.io","name":"karan_winmore"},{"email":"yash.patel@winmore.io","name":"yash.patel.winmore"},{"email":"divyansh@winmore.app","name":"divyansh-winmore"},{"email":"ravi.sah@winmore.app","name":"ravi.sah"},{"email":"subham.jaiswal@winmore.app","name":"dev-saj-winmore"}],"readme":"node-slack-commander\n============================\n\n[![NPM](https://nodei.co/npm/slack-commander.png?downloads=true&stars=true)](https://nodei.co/npm/slack-commander/)\n\n[![Build Status](https://circleci.com/gh/lanetix/node-slack-commander.svg?style=shield&circle-token=d31e343c35a40849a7b2535fecee58eb01e9bc55)](https://circleci.com/gh/lanetix/node-slack-commander)\n\n## Listen for Slack Slash Commands\n\n\n```\nvar express = require('express'),\n  bodyParser = require('body-parser'),\n  slackCommander = require('slack-commander');\n\nmodule.exports = function () {\n  var app = express();\n\n  app.use('/slack', slackCommander.router({\n    token: 'SLACK_SLASH_COMMAND_TOKEN',\n    commands: 'HASH_OF_SUPPORTED_COMMANDS'\n  }));\n\n  return app;\n};\n\n```\n\n#### Example Command Hash\n\nCommands are expected to return promises.\n\n```\nvar Promise = require('bluebird'),\n  commands = {\n    reverse: function (command, input) {\n      return Promise.resolve()\n        .then(function () {\n          var reversed = input.split('').reverse().join('');\n          // ... use messenger to log this back to a chat\n          return;\n        });\n    },\n    echo: function (command, args) {\n      return Promise.resolve()\n        .then(function () {\n          // ... use messenger to log this back to a chat\n          return;\n        });\n    }\n  }\n```\n\n## Send Messages to a Slack Room\n\n```\nvar slackCommander = require('slack-commander'),\n  options = {\n    username: 'Lanetix',\n    webhookUrl: 'WEBHOOK_URL'\n  },\n  messenger = slackCommander.messenger(options);\n\n  messenger.send('i can haz messages', { channel: '#cats' });\n```\n","readmeFilename":"README.md"}