Skip to content

Commit b4600d3

Browse files
committed
Update index.js, package_installer.bat, and CONTRIBUTE.md
This commit includes updates to the src/index.js, package_installer.bat, and CONTRIBUTE.md files. The src/index.js file has been updated to use the api_dev_key from the new secret.json file. The package_installer.bat file has been updated to create the secret.json file in the /src directory for storing hidden credentials. The CONTRIBUTE.md file has been updated with instructions for modifying these credentials.
1 parent dae8a3d commit b4600d3

File tree

2 files changed

+23
-7
lines changed

2 files changed

+23
-7
lines changed

CONTRIBUTE.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,26 @@ Thank you for your interest in contributing to ComputerCraft : Tweaked Blockly E
2929
git checkout -b <branch-name>
3030
```
3131

32-
## 5. Install Packages
32+
## 5. Install Packages and Dependencies
3333
- Download Node.js and npm
3434
- Launch `package_installer.bat`
3535
- If you are encountering unexpected error, please make an issue on Github
3636

37-
## 6. Make Changes
37+
## 6. Fill with your API Key
38+
- Go to `src/secret.json`
39+
- Fill the `api_user_key` with your API User Key (get it from `api_user_key.bat`)
40+
- Fill the `api_dev_key` with your API Dev Key from [Pastebin](https://pastebin.com/doc_api)
41+
42+
## 7. Make Changes
3843
- Make the necessary changes to the project using your preferred text editor or IDE.
3944

40-
## 7. Test your change
45+
## 8. Test your change
4146
- Just do
4247
```bash
4348
npm start
4449
```
4550

46-
## 8. Stage and Commit Changes
51+
## 9. Stage and Commit Changes
4752
- Stage the changes you've made.
4853
```bash
4954
git add .
@@ -53,20 +58,20 @@ Thank you for your interest in contributing to ComputerCraft : Tweaked Blockly E
5358
git commit -m "Add feature: <description>"
5459
```
5560

56-
## 9. Push Changes to Your Fork
61+
## 10. Push Changes to Your Fork
5762
- Push your changes to your forked repository on GitHub.
5863
```bash
5964
git push origin <branch-name>
6065
```
6166

62-
## 10. Create a Pull Request
67+
## 11. Create a Pull Request
6368
- Visit your forked repository on GitHub.
6469
- Click on the "Compare & pull request" button next to the branch you just pushed.
6570
- Provide a descriptive title and comment for your pull request.
6671
- Click on the "Create pull request" button to submit your changes for review.
6772
- We will review your pull request and see if we can merged it with the original repository.
6873

69-
## 11. Keep Your Fork Updated (Optional)
74+
## 12. Keep Your Fork Updated (Optional)
7075
- To keep your fork updated with the original repository, fetch changes from the upstream repository and merge them into your local master branch.
7176
```bash
7277
git fetch upstream

api_user_key.bat

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@echo off
2+
setlocal
3+
set /p api_dev_key=Enter your Pastebin API dev key:
4+
set /p username=Enter your Pastebin username:
5+
set /p password=Enter your Pastebin password:
6+
7+
echo Here is your API user key:
8+
curl -X POST -d "api_dev_key=%api_dev_key%&api_user_name=%username%&api_user_password=%password%" https://pastebin.com/api/api_login.php
9+
echo.
10+
pause
11+
endlocal

0 commit comments

Comments
 (0)