Cleaned Pedro's cleaning ;)

This commit is contained in:
Andy Tudhope 2018-03-20 14:13:06 +02:00
parent 1362bc33a3
commit b975645815
3 changed files with 8 additions and 8 deletions

View File

@ -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',

View File

@ -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
}

View File

@ -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)
})