Welcome to the Squad 44 Community Bot repository! We appreciate your interest in contributing to our project. To ensure a smooth and efficient contribution process, please follow the guidelines outlined below.
- Fork the Repository: To contribute, start by forking the repository to your GitHub account.
- Clone Your Fork: Clone the forked repository to your local machine using:
git clone https://github.com/Maximus7474/Squad44Bot.git
- Set Up the Project: Follow the setup instructions in the README to install dependencies and configure the project.
- If you're contributing to the vehicle deck file, please ensure to work of the TankDecks branch, as it will be the most up to date version.
- Identify an Issue: Check the Issues tab to find bugs, enhancements, or features to work on. You can also open a new issue to propose your own idea.
- Create a New Branch: Create a new branch for your changes:
git checkout -b feature/your-feature-name
- Make Your Changes: Implement your changes. Ensure you write clear and concise commit messages.
- Test Your Changes: Run tests to verify that your changes work as expected and do not break existing functionality.
- Commit Your Changes: Commit your changes with a descriptive message, following git conventions:
git add . git commit -m "Add a descriptive message about your changes"
- Push to Your Fork: Push your changes to your forked repository:
git push origin feature/your-feature-name
When updating the vehicleInfo.json
file, please follow the established template structure for different categories of vehicles: Tanks, Vehicles, and Canons.
Each tank entry should be structured as follows:
"Tank Name": {
"team": "Axis" or "Allies",
"type": "Light/Recon/Medium/Heavy Tank",
"factions": ["1st Airborne", "Polish Brigade", "Wehrmacht", "9.SS Panzer", "etc..."],
"chapters": ["I", "II", "III", "IV", "Mercury"],
"image": "url to an image", // or null
"details": {
"crew": [
"Driver", "Gunner", "Hull-Gunner", "Commander"
],
"passengers": 7, // optional
"caliber": "50mm",
"shells": {
"APC-HE-T": "X",
"APCR-T": "X"
}
}
}
Each vehicle entry should be structured as follows:
"Name": {
"team": "Allies" || "Axis",
"class": "Specialized" || "Mechanized",
"type": "Specialized Vehicle" || null, // Optional value
"factions": ["1st Airborne", "Polish Brigade", "Wehrmacht", "9.SS Panzer", "etc..."],
"chapters": ["I", "II", "III", "IV", "Mercury"],
"seats": 5, // Required value
"weaponry": {
"Vickers MG": 1
} // or set the value to null if no weapons or it's not applicable
}
Each canon entry should be structured as follows:
"QF. 6 Pounder": {
"team": "Allies" || "Axis",
"type": "Anti-Tank Canon", // or "Anti-Infantry Gun", "etc..."
"factions": ["1st Airborne", "Polish Brigade", "Wehrmacht", "9.SS Panzer", "etc..."],
"chapters": ["I", "II", "III", "IV", "Mercury"],
"weaponry": {
"Canon Calibre": 1 // any value, not used for the moment
}
}
Ensure that all fields are accurately filled out according to the vehicle's characteristics. If a field is optional and not applicable, you may omit it or set it to null
as indicated.
- Create a Pull Request: Navigate to the Pull Requests tab in the main repository and click on "New Pull Request." Select your branch and submit the pull request with a descriptive title and comments.
- Review and Feedback: Your pull request will be reviewed by the project maintainers. Be prepared to make adjustments based on feedback.
- Code Formatting: Ensure your code is consistently formatted, adhere to the project's existing style.
- Comments: Comment your code where necessary, especially complex logic.
- Naming Conventions: Use clear and descriptive names for variables, functions, and classes.
Before submitting your pull request, ensure that your code passes all existing tests. If you've added new functionality, please write corresponding tests.
When submitting a pull request, please ensure the following:
- All tests pass successfully.
- Your pull request includes relevant documentation updates.
- Community: Join our Discussion Forum or our Discord Server for community support and conversations.
Thank you for contributing to Squad 44 Community Bot! We look forward to your contributions.