Skip to content

Commit

Permalink
convert dev scripts to es modules, delete unused ones
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Dec 1, 2023
1 parent 7ed9d36 commit 83d7bad
Show file tree
Hide file tree
Showing 26 changed files with 35 additions and 693 deletions.
File renamed without changes.
61 changes: 0 additions & 61 deletions dev/allMmr.js

This file was deleted.

41 changes: 0 additions & 41 deletions dev/bootstrapMmr.js

This file was deleted.

42 changes: 0 additions & 42 deletions dev/cassandraRandom.js

This file was deleted.

35 changes: 0 additions & 35 deletions dev/cassandraTest.js

This file was deleted.

8 changes: 3 additions & 5 deletions dev/checkAccounts.js → dev/checkAccounts.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/* eslint-disable */
const fs = require("fs");
const Steam = require("steam");
const async = require("async");

import fs from 'fs';
import Steam from 'steam';
import async from 'async';
const accountData = fs.readFileSync("./STEAM_ACCOUNT_DATA_BAD.txt", "utf8");
const accountArray = accountData.split(require("os").EOL);

Expand Down
7 changes: 3 additions & 4 deletions dev/createAccounts.js → dev/createAccounts.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* eslint-disable */
const Steam = require("steam");
const SteamUser = require("steam-user");
const async = require("async");
import Steam from 'steam';
import SteamUser from 'steam-user';
import async from 'async';

const steam = new SteamUser();
const time = Math.floor(new Date() / 1000);
Expand Down
13 changes: 0 additions & 13 deletions dev/export-example.js

This file was deleted.

9 changes: 4 additions & 5 deletions dev/findProMatches.js → dev/findProMatches.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
const async = require("async");
const queries = require("../store/queries");
const db = require("../store/db");
const utility = require("../util/utility");
import async from 'async';
import queries from '../store/queries.js';
import db from '../store/db.js';
import { generateJob, getData } from '../util/utility.js';

const { generateJob, getData } = utility;
// const leagueUrl = generateJob('api_leagues', {}).url;

function getPage(url, leagueid, cb) {
Expand Down
4 changes: 2 additions & 2 deletions dev/generateFakeRatings.js → dev/generateFakeRatings.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const async = require("async");
const db = require("../store/db");
import async from 'async';
import db from '../store/db.js';

function randByCentralLimitTheorem() {
let v = 0;
Expand Down
45 changes: 0 additions & 45 deletions dev/getMatch.js

This file was deleted.

94 changes: 0 additions & 94 deletions dev/getMatchesSeq.js

This file was deleted.

6 changes: 3 additions & 3 deletions dev/keyTest.js → dev/keyTest.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const request = require("request");
const async = require("async");
const config = require("../config");
import request from 'request';
import async from 'async';
import config from '../config.js';

const output = [];

Expand Down
Loading

0 comments on commit 83d7bad

Please sign in to comment.