Thank you for considering contributing to the Discord Twitch Bot. This documentation outlines the guidelines for contributing to this project.
- Code of Conduct
- Prerequisites
- Getting Started
- Making Changes
- Testing
- Submitting Changes
- Review Process
- Contact
This project follows a Code of Conduct to ensure a welcoming and inclusive environment for all contributors and users. Please read it and adhere to its principles when participating in this project.
Before you start contributing, make sure you have the following prerequisites:
- Node.js and npm installed.
- A Discord Bot Token, Twitch Client ID, and Twitch Token ID.
- Knowledge of JavaScript and Discord.js library.
- A Discord server where you can add the bot.
-
Fork the repository to your GitHub account.
-
Clone the forked repository to your local machine:
git clone https://github.com/NYOGamesCOM/TwitchBot.git
-
Install the project dependencies:
npm install
-
Create a
.env
file in the project's root directory and add the following environment variables with your own values:DISCORD_BOT_TOKEN=your_discord_bot_token TWITCH_CLIENT_ID=your_twitch_client_id TWITCH_TOKEN_ID=your_twitch_token_id
-
Start the application:
npm start
-
You can now invite the bot to your Discord server using the OAuth2 URL displayed in the console when the bot is running.
Feel free to make changes, improvements, or bug fixes to the bot. Here are some guidelines:
- Follow a consistent code style.
- Document your code using comments.
- Use meaningful variable and function names.
- Keep the project dependencies updated.
Before submitting your changes, ensure that your code works correctly. Test it in your Discord server to make sure it functions as expected.
When you're ready to submit your changes:
-
Create a new branch for your changes:
git checkout -b feature/your-feature-name
-
Commit your changes with a descriptive message:
git commit -m "Add your feature or fix issue #X"
-
Push your changes to your forked repository:
git push origin feature/your-feature-name
-
Create a pull request (PR) on the original repository. Provide a clear title and description for your changes.
Contributions will be reviewed by the project maintainers. They may request changes or provide feedback before merging your changes into the project.
If you have questions or need assistance, you can contact the project maintainers on the project's Discord server.
Thank you for your interest in contributing to the Discord Twitch Bot! Your contributions are greatly appreciated.