Framework changes
This commit is contained in:
parent
1607b4be3f
commit
07ee08cb13
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
node_modules
|
||||
.idea
|
4
index.js
4
index.js
|
@ -12,7 +12,8 @@ function roll(text) {
|
|||
return "" + parser.parse(text);
|
||||
}
|
||||
|
||||
module.exports = function(ee) {
|
||||
module.exports = function(configuration) {
|
||||
return function(ee) {
|
||||
ee.on('roll', function(slack) {
|
||||
try {
|
||||
slack.replyUser(roll(slack.text));
|
||||
|
@ -21,3 +22,4 @@ module.exports = function(ee) {
|
|||
}
|
||||
});
|
||||
};
|
||||
}
|
|
@ -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": {
|
||||
|
|
Loading…
Reference in a new issue