This Discord bot is built using the Serenity library in Rust, designed to provide a robust framework for building Discord bots. It features commands for joining voice channels, playing audio from YouTube URLs, managing queues, and more.
- Join and leave voice channels
- Play audio from YouTube via URL
- Queue management for audio playback
- Volume control and track skipping
- Deafen, mute, undeafen, and unmute capabilities within voice channels
Before you begin, ensure you have met the following requirements:
- Rust Programming Language installed on your machine.
- A Discord Bot Token. Follow Discord's official guide to set up a bot account and obtain your token.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Clone the repository:
git clone https://yourrepositorylink.com
cd discord-bot-project
- Create a
.env
file in the root directory and add your Discord Bot Token:
DISCORD_TOKEN=your_discord_bot_token_here
- Build and run the project:
cargo build
cargo run
After running the bot, you can use the following commands in your Discord server:
~join
- The bot joins your current voice channel.~leave
- The bot leaves the voice channel.~play [URL]
- Play audio from the provided YouTube URL.~queue [URL]
- Add a YouTube URL to the queue.~skip
- Skip the current track.~stop
- Stop playing and clear the queue.
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Renato German - @xbz24 - [email protected]
Project Link: https://github.com/Xbz-24/Serenity-MusicBot/
- Serenity for the comprehensive Rust library for Discord bots.
- YouTube-DL for providing the means to stream audio from YouTube.