Skip to content

Commit d30d7d3

Browse files
authored
Merge pull request #445 from Magmastream-NPM/dev
2.8.6
2 parents 394e79f + 664f21d commit d30d7d3

File tree

9 files changed

+373
-107
lines changed

9 files changed

+373
-107
lines changed

CONTRIBUTING.md

Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
# Contributing to Magmastream
2+
3+
Thank you for your interest in contributing to Magmastream! We welcome contributions from everyone, whether you're fixing a typo, improving documentation, adding a new feature, or reporting a bug.
4+
5+
This document provides guidelines and steps for contributing to Magmastream. By following these guidelines, you help maintain the quality and consistency of the project.
6+
7+
## Table of Contents
8+
9+
- [Code of Conduct](#code-of-conduct)
10+
- [Getting Started](#getting-started)
11+
- [Development Workflow](#development-workflow)
12+
- [Pull Request Process](#pull-request-process)
13+
- [Coding Standards](#coding-standards)
14+
- [Testing](#testing)
15+
- [Documentation](#documentation)
16+
- [Community](#community)
17+
18+
## Code of Conduct
19+
20+
We expect all contributors to adhere to our Code of Conduct. Please read it before participating.
21+
22+
- Be respectful and inclusive
23+
- Be patient and welcoming
24+
- Be thoughtful
25+
- Be collaborative
26+
- When disagreeing, try to understand why
27+
28+
## Getting Started
29+
30+
### Prerequisites
31+
32+
- Node.js (v16.x or higher)
33+
- npm (v7.x or higher)
34+
- A running [Lavalink](https://github.com/freyacodes/Lavalink) server for testing
35+
36+
### Setup
37+
38+
1. Fork the repository on GitHub
39+
2. Clone your fork locally:
40+
```bash
41+
git clone https://github.com/YOUR-USERNAME/magmastream.git
42+
cd magmastream
43+
```
44+
3. Install dependencies:
45+
```bash
46+
npm install
47+
```
48+
4. Add the original repository as a remote:
49+
```bash
50+
git remote add upstream https://github.com/Magmastream-NPM/magmastream.git
51+
```
52+
53+
## Development Workflow
54+
55+
1. Create a new branch for your feature/fix:
56+
```bash
57+
git checkout -b feature/your-feature-name
58+
```
59+
or
60+
```bash
61+
git checkout -b fix/issue-you-are-fixing
62+
```
63+
64+
2. Make your changes
65+
66+
3. Run tests to ensure your changes don't break existing functionality:
67+
```bash
68+
npm test
69+
```
70+
71+
4. Commit your changes with a descriptive message:
72+
```bash
73+
git commit -m "feat: add new audio filter functionality"
74+
```
75+
We follow [Conventional Commits](https://www.conventionalcommits.org/) for commit messages.
76+
Also take a look at [this](https://www.freecodecamp.org/news/how-to-write-better-git-commit-messages/) tutorial for more information.
77+
78+
5. Push to your fork:
79+
```bash
80+
git push origin feature/your-feature-name
81+
```
82+
83+
6. Create a Pull Request from your fork to the [dev](https://github.com/Magmastream-NPM/magmastream/tree/dev) branch
84+
85+
## Pull Request Process
86+
87+
1. Ensure your PR addresses a specific issue. If an issue doesn't exist, create one first.
88+
2. Update documentation if necessary.
89+
3. Include tests for new features.
90+
4. Make sure all tests pass.
91+
5. Wait for code review and address any requested changes.
92+
6. Once approved, a maintainer will merge your PR.
93+
94+
## Coding Standards
95+
96+
We follow a set of coding standards to maintain consistency across the codebase:
97+
98+
- Use ESLint for code linting
99+
- Follow the existing code style
100+
- Write clear, descriptive variable and function names
101+
- Comment complex code sections
102+
- Keep functions small and focused on a single task
103+
- Use TypeScript for type safety
104+
105+
### TypeScript Guidelines
106+
107+
- Use proper typing instead of `any` wherever possible
108+
- Make interfaces for complex objects
109+
- Use enums for predefined values
110+
- Leverage union types and generics when appropriate
111+
112+
## Testing
113+
114+
All new features and bug fixes should include tests. We use Jest for testing.
115+
116+
- Unit tests for individual functions and methods
117+
- Integration tests for API endpoints and complex interactions
118+
- Make sure your tests are meaningful and cover edge cases
119+
120+
To run tests:
121+
```bash
122+
npm test
123+
```
124+
125+
## Documentation
126+
127+
Good documentation is crucial for the project:
128+
129+
- Update the README.md if necessary
130+
- Document all public methods and classes with JSDoc comments
131+
- Include examples for non-trivial functionality
132+
- Update the changelog for significant changes
133+
134+
## Community
135+
136+
Join our community to discuss development, get help, or chat:
137+
138+
- [Discord Server](https://discord.gg/wrydAnP3M6)
139+
- [GitHub Discussions](https://github.com/Magmastream-NPM/magmastream/discussions)
140+
141+
## Plugin Development
142+
143+
If you're creating a plugin for Magmastream:
144+
145+
1. Use the official plugin template
146+
2. Follow the plugin development guidelines
147+
3. Make sure your plugin is well-documented
148+
4. Include tests for your plugin functionality
149+
150+
## Releasing
151+
152+
Only maintainers can release new versions. The process is:
153+
154+
1. Update version in package.json
155+
2. Update CHANGELOG.md
156+
3. Create a GitHub release
157+
4. Publish to npm
158+
159+
## Questions?
160+
161+
If you have any questions about contributing, please reach out on our Discord server or open an issue on GitHub.
162+
163+
Thank you for contributing to Magmastream!

README.md

Lines changed: 131 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,91 @@
1+
<div align="center">
2+
3+
<p align="center">
4+
<img src="https://capsule-render.vercel.app/api?type=waving&color=gradient&height=300&section=header&text=Magmastream&fontSize=90&fontAlignY=35&animation=twinkling&fontColor=gradient&desc=Next-Generation%20Lavalink%20Wrapper&descSize=25&descAlignY=60" />
5+
</p>
6+
7+
[![NPM Version](https://img.shields.io/npm/v/magmastream?color=00DDB3&label=Magmastream&style=for-the-badge&logo=npm)](https://www.npmjs.com/package/magmastream)
8+
[![GitHub Stars](https://img.shields.io/github/stars/Magmastream-NPM/magmastream?color=yellow&style=for-the-badge&logo=github)](https://github.com/Magmastream-NPM/magmastream/stargazers)
9+
[![Downloads](https://img.shields.io/npm/dt/magmastream.svg?style=for-the-badge&color=FF6B6B)](https://www.npmjs.com/package/magmastream)
10+
11+
<br />
12+
113
<p align="center">
2-
<img src="https://capsule-render.vercel.app/api?type=waving&color=gradient&height=200&section=header&text=Magmastream&fontSize=80&fontAlignY=35&animation=twinkling&fontColor=gradient" />
14+
<img src="https://readme-typing-svg.herokuapp.com?font=Fira+Code&duration=3000&pause=1000&color=00DDB3&center=true&vCenter=true&width=435&lines=Powerful+Audio+Streaming;Optimized+for+Lavalink+v4;Feature-Rich+API;Seamless+Integration" />
315
</p>
416

5-
**Magmastream** is a powerful and feature-rich Lavalink wrapper for Node.js, designed to supercharge your audio applications. Currently optimized exclusively for Lavalink version 4, Magmastream delivers seamless audio streaming capabilities with elegant simplicity.
17+
</div>
618

7-
## Useful Links
19+
<div align="center">
20+
<h3>🎵 The Most Advanced Lavalink Wrapper for Node.js 🚀</h3>
21+
<h4>Powering the next generation of Discord music bots</h4>
22+
</div>
823

9-
- [Documentation](https://docs.magmastream.com)
10-
- [Example Bot](https://github.com/Magmastream-NPM/magmastream_basics_bot)
24+
<br />
1125

12-
## Contributing
26+
## ✨ Features
27+
28+
<div align="center">
29+
<table>
30+
<tr>
31+
<td align="center">🎯 Simple API</td>
32+
<td align="center">⚡ High Performance</td>
33+
<td align="center">🛠️ Rich Features</td>
34+
</tr>
35+
<tr>
36+
<td align="center">🔌 Plugin Support</td>
37+
<td align="center">📊 Advanced Analytics</td>
38+
<td align="center">🎚️ Audio Filters</td>
39+
</tr>
40+
</table>
41+
</div>
42+
43+
## 📦 Resources
44+
45+
<div align="center">
46+
<a href="https://docs.magmastream.com">
47+
<img src="https://img.shields.io/badge/Documentation-00DDB3?style=for-the-badge&logo=bookstack&logoColor=white" />
48+
</a>
49+
<a href="https://github.com/Magmastream-NPM/magmastream_basics_bot">
50+
<img src="https://img.shields.io/badge/Example_Bot-5865F2?style=for-the-badge&logo=discord&logoColor=white" />
51+
</a>
52+
<a href="https://discord.gg/HV59Z3zEjt">
53+
<img src="https://img.shields.io/badge/Support_Server-FF6B6B?style=for-the-badge&logo=discord&logoColor=white" />
54+
</a>
55+
</div>
56+
57+
## 🌟 Featured Projects
58+
59+
<div align="center">
60+
<table>
61+
<tr>
62+
<td align="center" width="33%">
63+
<img src="https://img.shields.io/badge/Lava_Jukebox-FF6B6B?style=for-the-badge&logo=discord&logoColor=white" /><br />
64+
<sub>by Abel Purnwasy</sub>
65+
</td>
66+
<td align="center" width="33%">
67+
<img src="https://img.shields.io/badge/Stal-00DDB3?style=for-the-badge&logo=discord&logoColor=white" /><br />
68+
<sub>by memte</sub>
69+
</td>
70+
<td align="center" width="33%">
71+
<img src="https://img.shields.io/badge/Lunio-5865F2?style=for-the-badge&logo=discord&logoColor=white" /><br />
72+
<sub>by vexi</sub>
73+
</td>
74+
</tr>
75+
</table>
1376

14-
We warmly welcome contributions that help elevate Magmastream to new heights! Whether you've discovered bugs that need squashing or have brilliant ideas for improvements, we'd love to see your contributions. Here's how you can join our community of developers:
77+
[View All Projects →](https://github.com/Magmastream-NPM/magmastream#used-by)
78+
</div>
1579

16-
1. Fork the repository to your own GitHub account.
17-
2. Create a fresh branch that reflects your intended changes.
18-
3. Implement your awesome modifications and fixes.
19-
4. Rigorously test your changes to ensure everything works flawlessly.
20-
5. Submit a detailed pull request, clearly describing the enhancements you've made.
80+
## 📊 Project Statistics
2181

22-
Together, we can make Magmastream an even more powerful and robust tool for everyone! Your expertise and creativity are invaluable to our project's growth. 🚀✨
82+
<div align="center">
2383

24-
## Bug Fixes
84+
![Stats](https://repobeats.axiom.co/api/embed/e46896cea6c7ad6648effe4d7868ffa3fef0151b.svg "Repobeats analytics image")
2585

26-
Have you discovered and squashed some pesky bugs? Fantastic! We'd love for you to [contribute](#contributing) by submitting a pull request. Your dedication to enhancing Magmastream's stability and reliability is invaluable to our community. Together, we can make this project even more robust! 🐛✨
86+
<br />
2787

28-
## Support
29-
Need help or have questions? Feel free to create an issue, and our community will be happy to assist you!
30-
For real-time support and engaging discussions, join our vibrant [Discord Support Server](https://discord.com/invite/HV59Z3zEjt).
88+
</div>
3189

3290
## Used By
3391

@@ -41,36 +99,76 @@ For real-time support and engaging discussions, join our vibrant [Discord Suppor
4199
| [Soundy](https://dsc.gg/sndy) | iaMJ |
42100
| [HamBot](https://discord.com/oauth2/authorize?client_id=1049314312776335390) | yanishamburger|
43101
| [Miyu](https://discord.com/oauth2/authorize?client_id=1277180179273482280&permissions=572851999731703&response_type=code&redirect_uri=https%3A%2F%2Fdiscord.gg%2Ftn3nbFB8nX&integration_type=0&scope=identify+applications.commands+bot) | Kenver |
44-
| [Savage Bot](https://discord.com/oauth2/authorize?client_id=823703707522433054&permissions=8&scope=bot%20applications.commands) | Savage |
102+
| [Savage Bot](https://discord.com/oauth2/authorize?client_id=823703707522433054&permissions=8&scope=bot%20applications.commands) | Savage
103+
| [rive](https://discord.com/oauth2/authorize?client_id=1350601402325405806) | pomice
104+
45105

46106
Want to showcase your bot? Feel free to create a pull request and add it to our growing list of amazing bots powered by Magmastream!
47107

48-
## Contributors
108+
## 👥 Contributors
49109

50-
A heartfelt thank you to all our amazing contributors who have poured their time and expertise into making Magmastream truly exceptional! Your dedication and passion continue to drive this project forward. 🚀✨
110+
<div align="center">
51111

52-
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
53-
<!-- prettier-ignore-start -->
54-
<!-- markdownlint-disable -->
112+
<!-- ALL-CONTRIBUTORS-LIST:START -->
55113
<table>
56114
<tbody>
57115
<tr>
58-
<td align="center" valign="top" width="14.28%"><a href="https://discord.gg/JCaTDJRz7P"><img src="https://avatars.githubusercontent.com/u/58607083?v=4?s=100" width="100px;" alt="Darek"/><br /><sub><b>Darek</b></sub></a><br /><a href="#doc-realdarek" title="Documentation">📖</a></td>
59-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Vexify4103"><img src="https://avatars.githubusercontent.com/u/47192617?v=4?s=100" width="100px;" alt="Vexify4103"/><br /><sub><b>Vexify4103</b></sub></a><br /><a href="#code-Vexify4103" title="Code">💻</a> <a href="#doc-Vexify4103" title="Documentation">📖</a></td>
60-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/ItzRandom23"><img src="https://avatars.githubusercontent.com/u/100831398?v=4?s=100" width="100px;" alt="Itz Random"/><br /><sub><b>Itz Random</b></sub></a><br /><a href="#code-ItzRandom23" title="Code">💻</a></td>
116+
<td align="center" valign="top" width="14.28%">
117+
<a href="https://discord.gg/JCaTDJRz7P">
118+
<img src="https://avatars.githubusercontent.com/u/58607083?v=4?s=100" width="100px;" alt="Darek"/>
119+
<br />
120+
<sub><b>Darek</b></sub>
121+
</a>
122+
<br />
123+
<a href="#doc-realdarek" title="Documentation">📖</a>
124+
</td>
125+
<td align="center" valign="top" width="14.28%">
126+
<a href="https://github.com/Vexify4103">
127+
<img src="https://avatars.githubusercontent.com/u/47192617?v=4?s=100" width="100px;" alt="Vexify4103"/>
128+
<br />
129+
<sub><b>Vexify4103</b></sub>
130+
</a>
131+
<br />
132+
<a href="#code-Vexify4103" title="Code">💻</a>
133+
<a href="#doc-Vexify4103" title="Documentation">📖</a>
134+
</td>
135+
<td align="center" valign="top" width="14.28%">
136+
<a href="https://github.com/ItzRandom23">
137+
<img src="https://avatars.githubusercontent.com/u/100831398?v=4?s=100" width="100px;" alt="Itz Random"/>
138+
<br />
139+
<sub><b>Itz Random</b></sub>
140+
</a>
141+
<br />
142+
<a href="#code-ItzRandom23" title="Code">💻</a>
143+
</td>
61144
</tr>
62145
</tbody>
63146
</table>
64147

65-
<!-- markdownlint-restore -->
66-
<!-- prettier-ignore-end -->
148+
<br />
67149

68-
<!-- ALL-CONTRIBUTORS-LIST:END -->
150+
<img src="https://contributers.code-fy.tech/Magmastream-NPM?yousuck" alt="Contributors" />
69151

152+
</div>
70153

71-
<img src="https://contributers.code-fy.tech/Magmastream-NPM?yousuck">
154+
## 🤝 Contributing
72155

73-
## Stats
156+
<div align="center">
74157

158+
We welcome contributions! Check out our [Contributing Guide](CONTRIBUTING.md) to get started.
75159

76-
![Stats](https://repobeats.axiom.co/api/embed/e46896cea6c7ad6648effe4d7868ffa3fef0151b.svg "Repobeats analytics image")
160+
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=for-the-badge)](CONTRIBUTING.md)
161+
162+
</div>
163+
164+
<div align="center">
165+
166+
<br />
167+
168+
<p align="center">
169+
<img src="https://capsule-render.vercel.app/api?type=waving&color=gradient&height=100&section=footer" />
170+
</p>
171+
172+
<sub>Built with ❤️ by the Magmastream Team</sub>
173+
174+
</div>

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "magmastream",
3-
"version": "2.8.5",
3+
"version": "2.8.6",
44
"description": "A user-friendly Lavalink client designed for NodeJS.",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
@@ -88,4 +88,4 @@
8888
"homepage": "https://docs.magmastream.com",
8989
"author": "Abel Purnwasy",
9090
"license": "Apache-2.0"
91-
}
91+
}

0 commit comments

Comments
 (0)