{"id":14983166,"url":"https://github.com/zeriodev/music-bot","last_synced_at":"2025-05-14T02:06:31.310Z","repository":{"id":40438079,"uuid":"237667486","full_name":"ZerioDev/Music-bot","owner":"ZerioDev","description":"A complete code to download for a cool Discord music bot !","archived":false,"fork":false,"pushed_at":"2024-12-02T14:56:34.000Z","size":427,"stargazers_count":930,"open_issues_count":15,"forks_count":1118,"subscribers_count":31,"default_branch":"master","last_synced_at":"2025-04-10T03:45:51.027Z","etag":null,"topics":["discord","discord-bot","discord-js","ffmpeg","music","nodejs"],"latest_commit_sha":null,"homepage":"https://discord.gg/5cGSYV8ZZj","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ZerioDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["ZerioDev"]}},"created_at":"2020-02-01T19:37:17.000Z","updated_at":"2025-04-08T06:37:31.000Z","dependencies_parsed_at":"2023-12-15T03:43:30.638Z","dependency_job_id":"ab5ca04e-c440-40a6-b93b-56b2f691d4ce","html_url":"https://github.com/ZerioDev/Music-bot","commit_stats":{"total_commits":277,"total_committers":21,"mean_commits":13.19047619047619,"dds":0.5090252707581228,"last_synced_commit":"23f092f0506313b723ce0eb092d2a8d7e80b5e2a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZerioDev%2FMusic-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZerioDev%2FMusic-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZerioDev%2FMusic-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZerioDev%2FMusic-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZerioDev","download_url":"https://codeload.github.com/ZerioDev/Music-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254052701,"owners_count":22006716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["discord","discord-bot","discord-js","ffmpeg","music","nodejs"],"created_at":"2024-09-24T14:06:50.137Z","updated_at":"2025-05-14T02:06:26.282Z","avatar_url":"https://github.com/ZerioDev.png","language":"JavaScript","funding_links":["https://github.com/sponsors/ZerioDev"],"categories":[],"sub_categories":[],"readme":"# Music-bot\n\nA complete code to download for a music bot 🎧\n\nLooking for a code for a music bot? This fully open-source code is made for your project!\n\nIf you need help with this project, to get support faster you can join the help server by just clicking [here](https://discord.gg/5cGSYV8ZZj).\n\n*If you don't have any development knowledge, it is recommended to join the Discord support server to get help.*\n\n### ⚡ Configuration\n\nImportant!!! In order to work you need to rename `.env.example` to `.env`\n\nOpen the configuration file located in the main folder `config.js`.\n\n```js\nconst process = require('process');\nmodule.exports = {\n    app: {\n        token: process.env.DISCORD_TOKEN || 'xxx',\n        playing: 'by the Community ❤️',\n        global: true,\n        guild: process.env.GUILD_ID || 'xxx',\n        extraMessages: false,\n        loopMessage: false,\n        lang: 'en',\n        enableEmojis: false,\n    },\n\n    emojis:{\n        'back': '⏪',\n        'skip': '⏩',\n        'ResumePause': '⏯️',\n        'savetrack': '💾',\n        'volumeUp': '🔊',\n        'volumeDown': '🔉',\n        'loop': '🔁',\n    },\n\n    opt: {\n        DJ: {\n            enabled: false,\n            roleName: '',\n            commands: []\n        },\n        Translate_Timeout: 10000,\n        maxVol: 100,\n        spotifyBridge: true,\n        volume: 75,\n        leaveOnEmpty: true,\n        leaveOnEmptyCooldown: 30000,\n        leaveOnEnd: true,\n        leaveOnEndCooldown: 30000,\n        discordPlayer: {\n            ytdlOptions: {\n                quality: 'highestaudio',\n                highWaterMark: 1 \u003c\u003c 25\n            }\n        }\n    }\n};\n```\n\nBasic configuration\n\n- `app/token`, the token of the bot available on the [Discord Developers](https://discordapp.com/developers/applications) section\n- `app/playing`, the activity of the bot\n- `app/global`, whether the commands will work on all servers or just one (if global they might take up to an hour to show up)\n- `app/guild`, the guild the slash command will be loaded to (this only applies if global is set to false)\n- `app/extraMessages` will increase the amount of bot spam, while you get more infomation (not recommended) \n\n- `app/lang` will change the bot client language [__**See below for supported language codes**__]\n\n- `app/Translate_Timeout` will set the time limit the bot has to create the translation succesfully. If the time is out, only the original english version will be printed. Set to `none` if you want to disable it (No Timeout). \n\n- `app/enableEmojis` will change the player buttons with emojis if set to true. `false` will replace them by basic english words\n\n- `opt/loopMessage`, if the message that a music is played should be sent when it is looped\n\nDJ mode configuration\n\n- `opt/DJ/enabled`, whether the DJ mode should be activated or not \n- `opt/DJ/roleName`, the name of the DJ role to be used\n- `opt/DJ/commands`, the list of commands limited to members with the DJ role\n\nAdvanced configuration (only change if you know what you are doing)\n\n- `opt/maxVol`, the maximum volume that users can define\n- `opt/spotifyBridge`, takes spotify songs/playlists and searches it on youtube and plays it (highly recommended)\n- `opt/volume`, is the defaul volume the queue will start at\n- `opt/leaveOnEmpty`, if the bot will leave when the queue is empty\n- `opt/leaveOnEmptyCooldown`, the cooldown before the bot leaves when the queue is empty\n- `opt/leaveOnEnd`,  if the bot will leave on finishing the queue\n- `opt/leaveOnEndCooldown`, the cooldown before the bot leaves on finishing the queue\n- `opt/discordPlayer`, options used by discord-player\n\n### 📑 Installation\nTo use the project correctly you will need some tools.\n\nWARNING: You MUST use Node.js version `v18.20.2`, otherwise, you will encounter major compatibility issues.\n\n[FFmpeg](https://www.ffmpeg.org) to process audio ( make sure to download the latest version availble )\n\n[Node JS](https://nodejs.org/en/) (`v18.20.2`) for environment\n\n[yarn](https://yarnpkg.com/getting-started/usage) for package management\n\nWithout forgetting of course the code editor, we recommend [visual studio code](https://code.visualstudio.com/) \n\nNow in your terminal run the following commands assuming you are in the same directory as the project.\n\n`yarn install` (or `npm install` **not recommended** as it might not work)\n\n`node .` (or `node main.js`)\n\nand Done, your bot should be running!\n\nRealized with ❤️ by the Community.\n\nPlease do not withdraw the license and keep the credits on this project. \n\nTo have full access to the project and to be able to withdraw the credits a small donation is accepted.\n\n### ❗supported languages: \n\n| Code | Language | Code | Language | Code | Language |\n| ---- | -------- | ---- | -------- | ---- | -------- |\n| `af` | Afrikaans | `bn` | Bengali | `da` | Danish |\n| `sq` | Albanian | `bg` | Bulgarian | `nl` | Dutch |\n| `ar` | Arabic | `ca` | Catalan | `en` | English |\n| `hy` | Armenian | `hr` | Croatian | `et` | Estonian |\n| `eu` | Basque | `cs` | Czech | `fi` | Finnish |\n| `be` | Belarusian | `cy` | Welsh | `fr` | French |\n| `bs` | Bosnian | `de` | German | `ga` | Irish |\n| `ja` | Japanese | `jv` | Javanese | `ka` | Georgian |\n| `kn` | Kannada | `kk` | Kazakh | `km` | Khmer |\n| `ko` | Korean | `ku` | Kurdish | `ky` | Kyrgyz |\n| `la` | Latin | `lb` | Luxembourgish | `lo` | Lao |\n| `lt` | Lithuanian | `lv` | Latvian | `mg` | Malagasy |\n| `mi` | Maori | `mk` | Macedonian | `ml` | Malayalam |\n| `mn` | Mongolian | `mr` | Marathi | `ms` | Malay |\n| `mt` | Maltese | `my` | Burmese | `ne` | Nepali |\n| `no` | Norwegian | `ny` | Chichewa | `pa` | Punjabi |\n| `pl` | Polish | `ps` | Pashto | `pt` | Portuguese |\n| `ro` | Romanian | `ru` | Russian | `sd` | Sindhi |\n| `si` | Sinhalese | `sk` | Slovak | `sl` | Slovenian |\n| `sm` | Samoan | `sn` | Shona | `so` | Somali |\n| `sq` | Albanian | `sr` | Serbian | `st` | Sesotho |\n| `su` | Sundanese | `sv` | Swedish | `sw` | Swahili |\n| `ta` | Tamil | `te` | Telugu | `th` | Thai |\n| `tr` | Turkish | `uk` | Ukrainian | `ur` | Urdu |\n| `vi` | Vietnamese | `xh` | Xhosa | `yi` | Yiddish |\n| `zu` | Zulu | `id` | Indonesian | | |\n\n### 📝 ToDo \n\n-  [ ] Vote to skip command https://github.com/ZerioDev/Music-bot/issues/187\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeriodev%2Fmusic-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeriodev%2Fmusic-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeriodev%2Fmusic-bot/lists"}