Framework changes

This commit is contained in:
Kegan Myers 2014-08-09 16:44:26 -05:00
parent 1607b4be3f
commit 07ee08cb13
3 changed files with 14 additions and 11 deletions

3
.gitignore vendored
View file

@ -1 +1,2 @@
node_modules
node_modules
.idea

View file

@ -12,12 +12,14 @@ function roll(text) {
return "" + parser.parse(text);
}
module.exports = function(ee) {
ee.on('roll', function(slack) {
try {
slack.replyUser(roll(slack.text));
} catch (e) {
slack.error(e.toString());
}
});
};
module.exports = function(configuration) {
return function(ee) {
ee.on('roll', function(slack) {
try {
slack.replyUser(roll(slack.text));
} catch (e) {
slack.error(e.toString());
}
});
};
}

View file

@ -1,6 +1,6 @@
{
"name": "slack-roll-command",
"version": "0.0.0",
"version": "0.0.1",
"description": "A slack command to roll dice",
"main": "index.js",
"dependencies": {