Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export async function main(ns) {
- const hibernate = new Promise((resolve)=>{
- ns.remoteExit = () => {
- resolve();
- ns.exit();
- return ns;
- };
- });
- if(false) {
- ns.hack("foodnstuff");
- }
- setTimeout(() => {
- try {
- nsExchange[ns.args[0]].hack.add(ns);
- } catch(e) {
- ns.remoteExit();
- }
- }, 10000);
- await hibernate;
- }
Add Comment
Please, Sign In to add comment