bitburner/scripts/update.js

19 lines
457 B
JavaScript
Raw Normal View History

2022-02-04 11:49:05 -05:00
export async function main(ns) {
const FILE_LIST = [
'scripts/auto-pwn.js',
'scripts/bruteforce.js',
'scripts/crawler.js',
'scripts/miner.js',
'scripts/node-manager.js',
'scripts/update.js'
];
function getUrl(file) {
return `https://gitlab.zakscode.com/ztimson/BitBurner/-/raw/develop/${file}`;
}
for(const FILE of FILE_LIST) {
await ns.wget(getUrl(FILE), FILE);
}
}