Cleaned Pedro's cleaning ;)
This commit is contained in:
parent
1362bc33a3
commit
b975645815
|
@ -12,7 +12,7 @@ function getLabelsURL (req) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns all the bounty labelNames of a given issue (Github API v3)
|
// 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 path = getLabelsURL(req).replace('https://api.github.com', '')
|
||||||
const options = {
|
const options = {
|
||||||
hostname: 'api.github.com',
|
hostname: 'api.github.com',
|
||||||
|
|
|
@ -3,9 +3,9 @@ const BOUNTY_LABELS = {
|
||||||
'bounty-xs': 2,
|
'bounty-xs': 2,
|
||||||
'bounty-s': 4,
|
'bounty-s': 4,
|
||||||
'bounty-m': 8,
|
'bounty-m': 8,
|
||||||
'bounty-l': 24,
|
'bounty-l': 20,
|
||||||
'bounty-xl': 48,
|
'bounty-xl': 40,
|
||||||
'bounty-xxl': 72
|
'bounty-xxl': 60
|
||||||
}
|
}
|
||||||
|
|
||||||
const ERC20_ABI = [
|
const ERC20_ABI = [
|
||||||
|
@ -49,7 +49,7 @@ const TOKEN_CONTRACTS = {
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
// Debug mode for testing the bot
|
// Debug mode for testing the bot
|
||||||
// debug: true,
|
debug: true,
|
||||||
|
|
||||||
// URL where the bot is listening (e.g. '/funding')
|
// URL where the bot is listening (e.g. '/funding')
|
||||||
urlEndpoint: '/',
|
urlEndpoint: '/',
|
||||||
|
@ -64,7 +64,7 @@ module.exports = {
|
||||||
privateKey: '',
|
privateKey: '',
|
||||||
|
|
||||||
// Token of the currency for fetching real time prices (e.g. 'SNT')
|
// 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)
|
// Limit for the gas used in a transaction (e.g. 92000)
|
||||||
gasLimit: 115000,
|
gasLimit: 115000,
|
||||||
|
@ -85,5 +85,5 @@ module.exports = {
|
||||||
githubUsername: 'status-open-bounty',
|
githubUsername: 'status-open-bounty',
|
||||||
|
|
||||||
// Activate real transactions
|
// Activate real transactions
|
||||||
// realTransaction: false
|
realTransaction: false
|
||||||
}
|
}
|
||||||
|
|
2
index.js
2
index.js
|
@ -89,5 +89,5 @@ async function processRequest (req) {
|
||||||
|
|
||||||
const port = process.env.PORT || 8181
|
const port = process.env.PORT || 8181
|
||||||
app.listen(port, function () {
|
app.listen(port, function () {
|
||||||
bot.info('Autobounty listening on port' + port)
|
bot.info('Autobounty listening on port ' + port)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue