commit 4f9da70120ed7dc6b7fbd452f709d732910f8413 Author: Kegan Myers Date: Sat Aug 9 16:57:42 2014 -0500 initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..723ef36 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea \ No newline at end of file diff --git a/index.js b/index.js new file mode 100644 index 0000000..351e5a0 --- /dev/null +++ b/index.js @@ -0,0 +1,11 @@ +module.exports = function(configuration) { + return function(ee) { + ee.on('roll', function(slack) { + try { + slack.replyUser(slack.text); + } catch (e) { + slack.error(e.toString()); + } + }); + }; +}; diff --git a/package.json b/package.json new file mode 100644 index 0000000..5738d99 --- /dev/null +++ b/package.json @@ -0,0 +1,19 @@ +{ + "name": "slack-phrase-command", + "version": "0.0.0", + "description": "", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "https://github.com/terribly-lazy/slack-phrase-command.git" + }, + "author": "Kegan Myers ", + "license": "BSD 2-Clause", + "bugs": { + "url": "https://github.com/terribly-lazy/slack-phrase-command/issues" + }, + "homepage": "https://github.com/terribly-lazy/slack-phrase-command" +}