Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better dev folder #21

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions dev/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
The developer folder has several tools for testing and storing/generating data files.

# File Information

Here is a list of all the files and what they do:

* `hats.js`: Generates price data for `data.json` from the hat thing in the source code of the client.
* `data.json`: Stores important hat-related data such as aliases and prices.
5 changes: 0 additions & 5 deletions data.json → dev/data.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
{
"header": [
" If you're here and you're ",
" not a developer of these bots, ",
" you're in the wrong place. "
],
"hatAliases": {
"shame": 45,
"joker": 45,
Expand Down
8 changes: 0 additions & 8 deletions dev/formatHatJson.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
/*

#### If you're here and you're ####
#### not a developer of these bots, ####
#### you're in the wrong place. ####

*/

let hatPrices = [];
let hatInfo = undefined; // paste the hat array object here

Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function getHatID(name){
}
}

const data = require("./data.json");
const data = require("./dev/data.json");

const names = [
"Wally",
Expand Down