diff --git a/bot/github.js b/bot/github.js index e85a00e..f07b3b7 100644 --- a/bot/github.js +++ b/bot/github.js @@ -12,7 +12,7 @@ function getLabelsURL (req) { } // Returns all the bounty labelNames of a given issue (Github API v3) -function getLabels (req) { +const getLabels = function (req) { const path = getLabelsURL(req).replace('https://api.github.com', '') const options = { hostname: 'api.github.com', diff --git a/config/default.js b/config/default.js index 251bf26..ddf818d 100644 --- a/config/default.js +++ b/config/default.js @@ -3,9 +3,9 @@ const BOUNTY_LABELS = { 'bounty-xs': 2, 'bounty-s': 4, 'bounty-m': 8, - 'bounty-l': 24, - 'bounty-xl': 48, - 'bounty-xxl': 72 + 'bounty-l': 20, + 'bounty-xl': 40, + 'bounty-xxl': 60 } const ERC20_ABI = [ @@ -49,7 +49,7 @@ const TOKEN_CONTRACTS = { module.exports = { // Debug mode for testing the bot - // debug: true, + debug: true, // URL where the bot is listening (e.g. '/funding') urlEndpoint: '/', @@ -64,7 +64,7 @@ module.exports = { privateKey: '', // Token of the currency for fetching real time prices (e.g. 'SNT') - token: '', + token: 'SNT', // Limit for the gas used in a transaction (e.g. 92000) gasLimit: 115000, @@ -85,5 +85,5 @@ module.exports = { githubUsername: 'status-open-bounty', // Activate real transactions - // realTransaction: false + realTransaction: false } diff --git a/index.js b/index.js index cfc77fe..72ae611 100644 --- a/index.js +++ b/index.js @@ -89,5 +89,5 @@ async function processRequest (req) { const port = process.env.PORT || 8181 app.listen(port, function () { - bot.info('Autobounty listening on port' + port) + bot.info('Autobounty listening on port ' + port) })