Welcome to the BleachBot project. This guide will help you set up, run, and update the bot on your system.
-
Node.js: Ensure you have Node.js installed. If not, download and install it from Node.js official website.
-
GitHub Desktop: This tool makes it easy to manage and update the project. If you haven't installed it yet, download and set it up from GitHub Desktop's official website.
- Open GitHub Desktop.
- Go to
File->Clone Repository. - In the URL section, paste:
https://github.com/Trameurs/BleachBot. - Choose a local path where you want the bot's files to be saved.
- Click
Clone.
-
Navigate to the bot's local directory (the path you chose during cloning).
-
Open the
.envfile and set up your bot token and client id (ask the developer). -
Open a terminal or command prompt in this directory. You can do this by right-clicking inside the folder while holding the
Shiftkey and selectingOpen command window here. -
Run the following command to install the bot's dependencies:
npm install
-
In the same terminal or command prompt window, start the bot by running:
npm run dev
-
If everything is set up correctly, you should see a message indicating that the bot is online. (last message should be
Successfully reloaded X application (/) commands.)
To ensure you have the latest version of the bot:
- Open GitHub Desktop.
- Select
BleachBotfrom the list of repositories on the left. - Click on the
Fetch originbutton on the top to check for updates. - If updates are available, click on the
Pullbutton to download them. - Once updated, follow the steps in the "Running the Bot" section to restart it.
BleachBot is equipped with a rich dataset that powers its features. To expand the capabilities of the bot or to keep it updated, you can add new characters, attacks, weapons, items and quiz questions. Below is a step-by-step guide on how to do so. As soon as you save the file with your new data, it will be available in game.
-
Navigate to the
characters.jsonfile in your repository insidedata. -
Under the
CHARACTERSarray, you can add a new character by following the structure:{ "id": 1, // Increment by 1 from the last character "name": "Character Name", "title": "Character Title", "rank": "Rank", "form": "Character Form", "attacks": [ "attack_id_1", "attack_id_2", "attack_id_3", "attack_id_4" ], "power": 1234 } -
Make sure to also add their attacks under the
ATTACKarray if they have unique attacks not previously listed. -
Add an image to your character by naming it by its "id", the image need to be either a "jpg", "png" or "webp" and be saved in the "images" folder.
-
Navigate to the
items.jsonfile. -
For adding weapons, add a new entry under the
WEAPONSarray:{ "id": "W3", // Increment the number, keep "W" (as in Weapon) "name": "Weapon Name", "power": 5678 } -
For other items, add under the
ITEMSarray:{ "id": "I3", // Increment the number, keep "I" (as in Items) "name": "Item Name", "power": 5678 }
-
Navigate to the
quiz.jsonfile. -
Add a new question entry in the format:
{ "question": "Your Question Here?", "answers": ["Option 1", "Option 2", "Option 3"], "correct": "Correct Answer" //The "correct" answer need to be the exact same words as one of "answers" } -
Ensure the correct answer exists in the
answersarray.
You can also modify any character/item/quiz, but don't touch the "id".
Once you've added the new data, you can commit your changes (to save it online) using GitHub Desktop:
- Open GitHub Desktop and navigate to the
BleachBotrepository. - Review your changes and make sure everything looks right.
- Write a brief summary of your changes in the left sidebar.
- Click
Commit to main(or your relevant branch). - Click
Push originto update the remote repository.
If you encounter any issues or have questions, please contact the developer.