diff --git a/modules/rain/config.json b/modules/rain/config.json index eb3ca8c..e222ae7 100644 --- a/modules/rain/config.json +++ b/modules/rain/config.json @@ -1,5 +1,6 @@ { "dependencies": [ "command" ], "ignorable": true, - "help": "http://github.com/reality/depressionbot/blob/master/modules/rain/README.md" + "help": "http://github.com/reality/depressionbot/blob/master/modules/rain/README.md", + "apikey": "1234567890abcdef" } diff --git a/modules/rain/rain.js b/modules/rain/rain.js index 81b6feb..c6f2165 100644 --- a/modules/rain/rain.js +++ b/modules/rain/rain.js @@ -8,6 +8,7 @@ var request = require('request'), var rain = function(dbot) { var commands = { '~rain': function(event) { + var apikey = dbot.config.rain.apikey; var precip = event.params[1]; var score = 2 * Math.pow(precip,0.5); score = Math.ceil(score);