config.js can setting sa path, and install w/ my repo in script.
This commit is contained in:
parent
3b94ccac7d
commit
1327616635
|
@ -21,4 +21,7 @@ const AUTH = { // 如果您拥有service account的json授权文件,可将其
|
||||||
tg_whitelist: ['your_tg_username'] // 你的tg username(t.me/username),bot只会执行这个列表里的用户所发送的指令
|
tg_whitelist: ['your_tg_username'] // 你的tg username(t.me/username),bot只会执行这个列表里的用户所发送的指令
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = { AUTH, PARALLEL_LIMIT, RETRY_LIMIT, TIMEOUT_BASE, TIMEOUT_MAX, LOG_DELAY, PAGE_SIZE, DEFAULT_TARGET }
|
//-------------------MOD-------------------
|
||||||
|
const SA_PATH = '../sa' //sa路徑配置, 給定絕對路徑或是以src為當前路徑給定相對路徑
|
||||||
|
|
||||||
|
module.exports = { AUTH, PARALLEL_LIMIT, RETRY_LIMIT, TIMEOUT_BASE, TIMEOUT_MAX, LOG_DELAY, PAGE_SIZE, DEFAULT_TARGET, SA_PATH }
|
||||||
|
|
|
@ -117,7 +117,7 @@ $cmd_install install $cmd_install_rely -y
|
||||||
curl -sL $nodejs_curl | bash -
|
curl -sL $nodejs_curl | bash -
|
||||||
$cmd_install install nodejs -y
|
$cmd_install install nodejs -y
|
||||||
$cmd_install_rpm_build
|
$cmd_install_rpm_build
|
||||||
git clone https://github.com/iwestlin/gd-utils && cd gd-utils
|
git clone https://github.com/liaojack8/gd-utils-cht && cd gd-utils-cht
|
||||||
npm config set unsafe-perm=true
|
npm config set unsafe-perm=true
|
||||||
npm i
|
npm i
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ const HttpsProxyAgent = require('https-proxy-agent')
|
||||||
const { GoogleToken } = require('gtoken')
|
const { GoogleToken } = require('gtoken')
|
||||||
const handle_exit = require('signal-exit')
|
const handle_exit = require('signal-exit')
|
||||||
|
|
||||||
const { AUTH, RETRY_LIMIT, PARALLEL_LIMIT, TIMEOUT_BASE, TIMEOUT_MAX, LOG_DELAY, PAGE_SIZE, DEFAULT_TARGET } = require('../config')
|
const { AUTH, RETRY_LIMIT, PARALLEL_LIMIT, TIMEOUT_BASE, TIMEOUT_MAX, LOG_DELAY, PAGE_SIZE, DEFAULT_TARGET, SA_PATH } = require('../config')
|
||||||
const { db } = require('../db')
|
const { db } = require('../db')
|
||||||
const { make_table, make_tg_table, make_html, summary } = require('./summary')
|
const { make_table, make_tg_table, make_html, summary } = require('./summary')
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ const { https_proxy } = process.env
|
||||||
const axins = axios.create(https_proxy ? { httpsAgent: new HttpsProxyAgent(https_proxy) } : {})
|
const axins = axios.create(https_proxy ? { httpsAgent: new HttpsProxyAgent(https_proxy) } : {})
|
||||||
|
|
||||||
const SA_BATCH_SIZE = 1000
|
const SA_BATCH_SIZE = 1000
|
||||||
const SA_FILES = fs.readdirSync(path.join(__dirname, '../sa')).filter(v => v.endsWith('.json'))
|
const SA_FILES = fs.readdirSync(path.join(__dirname, SA_PATH)).filter(v => v.endsWith('.json'))
|
||||||
SA_FILES.flag = 0
|
SA_FILES.flag = 0
|
||||||
let SA_TOKENS = get_sa_batch()
|
let SA_TOKENS = get_sa_batch()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue