Add foreach to cashout
This commit is contained in:
11
cashout.js
11
cashout.js
@@ -1,11 +1,14 @@
|
||||
import { players } from './config.json';
|
||||
import Account from './classes/Account';
|
||||
|
||||
const CASH_OUT_PLAYER = 'wiseaegg1';
|
||||
const REAL_PAYPAL = 'slim.adad1937@gmail.com';
|
||||
|
||||
const ps = ["fairause69","overduew3356","hardapipe79","lazyagame55","fairastar49","scottJRN8","jimmycarte","klondikelot","sttJRN8","jhonasa","420J"];
|
||||
ps.forEach((p) => {
|
||||
const CASH_OUT_PLAYER = p;
|
||||
const REAL_PAYPAL = `${CASH_OUT_PLAYER}@mailaton.com`;
|
||||
console.log(REAL_PAYPAL);
|
||||
const player = players.find((player) => player.username === CASH_OUT_PLAYER);
|
||||
|
||||
console.log(`Cashing out ${player.username}!`);
|
||||
const playerAccount = new Account(player);
|
||||
playerAccount.cashout(REAL_PAYPAL);
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user