|
9 | 9 | <a href="https://discord.com/api/oauth2/authorize?client_id=699912361481470032&permissions=8&scope=bot"><img src="https://img.shields.io/badge/DebilBot-Add to Discord server-orange?logo=probot&logoColor=orange"></a> |
10 | 10 | <br> |
11 | 11 | <img src="https://img.shields.io/badge/Python-3.10x-yellow"> |
12 | | -<img src="https://img.shields.io/badge/Discord.Py-1.7.3-blue"> |
| 12 | +<img src="https://img.shields.io/badge/Discord.Py-2.2.2-blue"> |
13 | 13 |
|
14 | 14 | *** |
15 | 15 |
|
|
19 | 19 | + **Python 3.10.0** |
20 | 20 |
|
21 | 21 | #### Python modules |
22 | | -+ discord |
23 | | -+ discord_components |
24 | | -+ googletrans==3.1.0a0 |
| 22 | +`pip install -r requirements.txt` |
| 23 | ++ discord 2.2.2 |
| 24 | ++ googletrans 3.1.0a0 |
25 | 25 | + requests |
26 | 26 | + youtube_dl |
27 | 27 | + asyncio |
|
36 | 36 |
|
37 | 37 | ### Usage |
38 | 38 |
|
39 | | -***Recomendation: before using, please, read the LICENSE file!*** |
| 39 | +***Recomendation: before using read the LICENSE file!*** |
| 40 | + |
| 41 | +1. Install all dependencies (`pip install -r requirements.txt`) |
| 42 | +2. Get your bot token in [discord dev portal](https://discord.com/developers/applications) |
| 43 | +3. Set DEBIL_TOKEN environment variable, **OR** put it in `settings.token` in `config.py` |
| 44 | +4. Run main.py file |
40 | 45 |
|
41 | | -Open `config.py` file in root directory, and edit prefix value, token value (or make environment variable DEBIL_TOKEN with your token value), |
42 | | -path to ffmpeg, and in dict with emojis set up values with emoji id. |
43 | 46 |
|
44 | 47 | To launch music commands, as **play**: |
45 | 48 | Windows: [download ffmpeg build](https://www.gyan.dev/ffmpeg/builds/), unpack archive, `path_to_ffmpeg` value must be your path to ffmpeg. |
46 | 49 | Linux: just install ffmpeg (`sudo apt install ffmpeg`, `sudo apt-get install ffmpeg`, etc), in `path_to_ffmpeg` value type `ffmpeg` |
47 | 50 |
|
48 | | -**For bot starting, open `main.py` file** |
| 51 | + |
49 | 52 |
|
50 | 53 | --- |
51 | 54 |
|
52 | 55 | ### Commands List |
53 | 56 |
|
54 | | -Command | Description |
55 | | -----------------------------------------|--------------------------------------------------------------------------------- |
56 | | -help | Show command list |
57 | | -help *command name* | Show details about command |
58 | | -play *song name* | Starts playing the song (U need to be connected in the Voice Chat) |
59 | | -pause | Pausing the song |
60 | | -resume | Resume song playing |
61 | | -stop | Stopping the song |
62 | | -leave | Disconnects the bot from voice chat |
63 | | -clear *number of messages* | Delete messages from text chat |
64 | | -fetch *ID of the message* | Delete one message from chat by ID |
65 | | -kick *member mention* | Kicks member from server |
66 | | -ban *member mention* | Bans member on server |
67 | | -avatar *member mention* | Sends user avatar |
68 | | -user_info *member mention* | Shows user information |
69 | | -server_info | Shows server information |
70 | | -encode_b64 *text* | Coverts text to base64 |
71 | | -decode_b64 *base64* | Converts Base64 to the text |
72 | | -encode_binary *text* | Coverts text to the binary code |
73 | | -decode_binary *binary code* | Converts binary code to the text |
74 | | -translate *lang in ISO 639-1* *text* | Translates the text |
75 | | -poll *question* *answer1* *answ2* | Creates a poll. Minimum 2 answers, max 10. !!!Questions and answers take IN QUOTES |
76 | | -echo *text* | Repeats your text |
77 | | -slots | Slot machine |
| 57 | +| Command | Description | |
| 58 | +|--------------------------------------|------------------------------------------------------------------------------------| |
| 59 | +| help | Show command list | |
| 60 | +| help *command name* | Show details about command | |
| 61 | +| play *song name* | Starts playing the song (U need to be connected in the Voice Chat) | |
| 62 | +| pause | Pausing the song | |
| 63 | +| resume | Resume song playing | |
| 64 | +| stop | Stopping the song | |
| 65 | +| leave | Disconnects the bot from voice chat | |
| 66 | +| clear *number of messages* | Delete messages from text chat | |
| 67 | +| fetch *ID of the message* | Delete one message from chat by ID | |
| 68 | +| kick *member mention* | Kicks member from server | |
| 69 | +| ban *member mention* | Bans member on server | |
| 70 | +| avatar *member mention* | Sends user avatar | |
| 71 | +| user_info *member mention* | Shows user information | |
| 72 | +| server_info | Shows server information | |
| 73 | +| encode_b64 *text* | Coverts text to base64 | |
| 74 | +| decode_b64 *base64* | Converts Base64 to the text | |
| 75 | +| encode_binary *text* | Coverts text to the binary code | |
| 76 | +| decode_binary *binary code* | Converts binary code to the text | |
| 77 | +| translate *lang in ISO 639-1* *text* | Translates the text | |
| 78 | +| poll *question* *answer1* *answ2* | Creates a poll. Minimum 2 answers, max 10. !!!Questions and answers take IN QUOTES | |
| 79 | +| echo *text* | Repeats your text | |
| 80 | +| slots | Slot machine | |
0 commit comments