Repository navigation
Development Guide
This development guide will help you get started with contributing to the Honeycomb Discord bot project. We'll cover setting up your development environment, understanding the code structure, and creating pull requests.
- Prerequisites
- Setting Up Your Development Environment
- Understanding the Code Structure
- Contributing Guidelines
- Creating Pull Requests
Before you begin, ensure you have the following tools installed on your development machine:
- Git: https://git-scm.com/downloads
- .NET 7 SDK: https://dotnet.microsoft.com/download/dotnet/7.0
- Visual Studio, Visual Studio Code, or another compatible IDE.
-
Fork the Honeycomb Discord bot repository on GitHub:
-
Clone your forked repository to your local machine:
git clone https://github.com/Anheledir/Honeycomb.git -
Change to the project directory:
cd Honeycomb -
Open the solution file (
Honeycomb.sln) in your preferred IDE. -
Build the solution to download and install the required NuGet packages.
-
Create a
.envfile in the project root with the following content, replacing<DISCORD_TOKEN>and<LITEDB_CONNECTION_STRING>with appropriate values:
DISCORD_TOKEN=<DISCORD_TOKEN>
LITEDB_CONNECTION_STRING=<LITEDB_CONNECTION_STRING>- Run the project in your IDE to start the bot.
The Honeycomb Discord bot project is organized into several folders:
- Commands: Contains all the command implementations, organized by feature.
- Database: Contains the LiteDB database-related classes and models.
- Events: Contains event handlers for various Discord events.
- Helpers: Contains utility classes and functions used throughout the project.
- Services: Contains core services for handling Discord interactions, commission management, and other features.
Take some time to familiarize yourself with the codebase and the features you're interested in contributing to.
Before you start making changes, please follow these guidelines:
- Check the issues to see if there's an existing issue related to your proposed changes.
- If no related issue exists, create a new issue describing the problem or enhancement you'd like to address.
- Discuss the issue with the maintainers to get feedback and ensure it aligns with the project goals.
- Create a new branch for your changes, preferably with a descriptive name related to the issue you're addressing.
- Read our Coding- and Logging Guidelines for writing or editing source-code files.
Once you've made your changes, you can submit a pull request to have them reviewed and potentially merged into the main branch. Follow these steps:
- Commit your changes to your branch with a descriptive commit message. The project uses Conventional Commits.
- Push your branch to your forked repository on GitHub.
- Navigate to the original repository and create a new pull request.
- Select your forked repository and the branch you created as the source, and the main branch of the original repository as the destination.
- Provide a clear and concise title and description for your pull request, referencing the issue number if applicable (e.g., "Fixes #123").
- Submit the pull request and wait for a review from the maintainers. They may request changes or provide feedback on your submission.
- If changes are requested, make the necessary updates, commit them to your branch, and push the changes to your forked repository. The pull request will be updated automatically.
Remember to be patient and respectful when waiting for feedback or discussing changes with the maintainers. They are volunteers dedicating their time to maintain and improve the project, and your contributions are appreciated.
Thank you for contributing to the Honeycomb Discord bot!
Honeycomb Discord Bot © 2023 Gordon Breuer. All rights reserved.
For inquiries or support, please email us at support@honeycombs.cloud.
Last updated: March 24, 2023