1
1
# Music Bot
2
2
3
- This is a simple music bot written in Python using the Discord.py library and yt_dlp for YouTube downloads.
3
+ This is a simple music bot written in Python using the Pycord library and yt_dlp to search and retrieve audio tracks from YouTube.
4
+ Users can add tracks to the queue, skip the current track, remove track from queue and view the queue.
4
5
5
6
## Getting Started
6
7
7
- ### Prerequisites
8
-
9
- - Python 3.x
10
- - pip (Python package installer)
11
-
12
8
### Installation
13
9
14
10
1 . Clone the repository:
@@ -22,30 +18,46 @@ This is a simple music bot written in Python using the Discord.py library and yt
22
18
` ` ` bash
23
19
cd DiscordMusicBot
24
20
` ` `
25
-
26
- 3. Install dependencies:
21
+ 3. Set up a virtual environment
22
+
23
+ For Windows
24
+ ` ` ` bash
25
+ python -m venv venv
26
+ venv\S cripts\a ctivate
27
+ ` ` `
28
+ For Linux/MacOS
29
+ ` ` ` bash
30
+ python3 -m venv venv
31
+ source venv/bin/activate
32
+ ` ` `
33
+
34
+ 4. Install dependencies:
27
35
28
36
` ` ` bash
29
37
pip install -r requirements.txt
30
38
` ` `
39
+ 5. Install ffmpeg:
40
+
41
+ You also need ffmpeg to work, you can download it from ffmpeg.org or using a package manager.
31
42
32
- 4 . Create a ` .env` file in the project root and add your Discord bot token:
43
+ 6 . Create a ` .env` file in the project root and add your Discord bot token:
33
44
34
45
```
35
46
DISCORD_TOKEN=your_discord_token_here
36
47
```
37
48
38
- 5 . Run the bot:
49
+ 7 . Run the bot:
39
50
40
51
` ` ` bash
41
52
python main.py
42
53
` ` `
43
54
44
55
# # Usage
45
56
46
- - Use the ` ! play` command to play a track and add it to the queue.
47
- - Use the ` ! queue` command to display the current queue.
48
- - Use the ` ! skip` command to skip the current track.
57
+ - To play a track and add it to the queue, use the /play command.
58
+ - To view the current queue, use the /queue command or click on the ' Очередь' button that is sent along with the message about the playing track.
59
+ - To skip the current track, use the /skip command or click on the ' Пропустить' button that is sent along with the message about the playing track.
60
+ - If you want to remove a track from the queue, click on the ' Удалить' button that is sent along with the message about the added track.
49
61
50
62
Feel free to customize and extend the functionality as needed!
51
63
@@ -55,4 +67,4 @@ Contributions are welcome. Please fork the repository, make your changes, and su
55
67
56
68
# # License
57
69
58
- This project is licensed under the Apache License - see the LICENSE file for details.
70
+ This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
0 commit comments