Giter Club home page Giter Club logo

green-bot's Introduction

Green bot

Green-bot

If you liked this repository, feel free to leave a star ⭐ and follow me, it supports me a lot! Thanks you!

Green-bot is a Free Discord Music bot that can play music right into your discord server! The bot does not support youtube, deezer or spotiy.


🧷 Links


🚀 Bot features

  • Dj system
  • Unlimited use of audio filters
    • Bassboost, nightcore, karaoke, vaporwave, earrape & More
  • Easy to use
  • Easy configuration
  • Autoplay
  • 24/7 music
  • Songs request channel
  • Highly configurable
  • Remove duplicates tracks
  • Easy to setup

📁 Installation

Note:

  • If you need help with the installation, you can join our Discord Server.
  • The code isn't the same as production, this version is made to learn people how it works but it's not the same as Green-Bot.

Before you start, please consider that if you want to self-host this bot for personal use you should purchase a custom bot. Installation is not beginner friendly.

And yes, it's same for replit.

You are looking for the All-in-One bot? Click here

Before starting, make you sure you have a mongoDB database (it's free) and nodejs v16.

You will need to start a lavalink server and complete the informations in the config.js files.

Guide: How to start and create a lavalink server

Once your server is ready go in the config.js file and add a node.

lavalink: [
        { name: "node", url: "IP:PORT", auth: "LAVALINK_PASSWORD" },
 ],

⚠ Please make sure that you are using the same informations as provided in the application.yml file

Step 1.

Install NodeJS on your computer or on your vps. https://nodejs.org. You MUST have NodeJs 16 or an higher version. Then, download the files and open them with Visual Studio code (code.visualstudio.com). Then press Crtl + shift + ù or click on "new terminal", on the top bar.

Step 2. When your terminal is created, write npm install in your terminal to download all the modules. ⚠ the bot won't work if you don't italian the modules! If you encounter any error, make you sure that you have the latest version of nodejs or ask in the discord server.

Step 3. When the modules have been downloaded and a node_modules directory has been created, go to the config.ts file in the src folder and setup the bot. You can find some comments about every setting.

Step 4.

Re-open your terminal and write tsc --build to build the files, you need to do it for every change.

Now, you can start the bot by pressing F5 or putting npm run start in the terminal.

Step 5. Enjoy your bot !

green-bot's People

Contributors

anirudhgupta109 avatar bananonz avatar bliitzz avatar code-factor avatar dependabot[bot] avatar dwantless avatar ghostfighter50 avatar jonixtech avatar kylixn avatar loutrinesk avatar paudb099 avatar pauldb09 avatar rayaratrika avatar thebigwolfy avatar thisdudeboy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

green-bot's Issues

Prefix not changing

I changed prefix in config.js from * to Ri! but it still is replying to old prefix only and youtube alerts commands is not working

Auto update controller embed

I've setup a dedicated #controller channel and set it to read only. I'd love if it could auto update every few seconds so the "now playing" part of the controller embed shows properly. Is there a way you could auto update that embed or edit the original message? I haven't looked through the source yet but will do so and submit a PR if I can.

Thanks!

Make the music-requests play command implicitly

Is your feature request related to a problem? Please describe.
Make the music-requests channel to accept any string that is not a command as a play command implicitly

Describe the solution you'd like
For example inside the channel if you entered just a youtube playlist then make the bot play that list without need of using explict play command

Bot Is Not Playing Music

I am using green bot open source code but when I am trying to play music in it it's showing now playing and song name and then directly shows queue conclude and also when I am trying to use skip command it's showing error I am attaching the screenshot.

Thanks.
IMG_20220615_150546

Default volume not working when using the controller

Describe the bug
When the queue is created using the controller, the initialVolume is set to 60 instead of the default volume set by the user.

This can be fixed by replacing initialVolume: 60 with initialVolume: guildDB.defaultVolume in events/discord/messageCreate.js#L103

Code qui ferme quand .backup create

Bonjour, je rencontre beaucoup d'erreurs avec le bot, beaucoup sont dus aux emojis, mais cela, je parviens un peu près à les gérer.
Mon nouveau problème est la commande .backup create
Je reçois l'erreur "Uncaught TypeError: message.guild.channels.cache.sort(...).array is not a function"
Pouvez-vous m'aider s'il vous plaît ?

Bug Report

Auto Play / on autoplay after bot queue end it will not autoplay things but i skip the songs it work like it give new song
but after queue end it will not play songs player will stop

this is the error = [Dispatcher => 924888533137764403] Ended received from source undefined . no tracks in queue [Dispatcher => 924888533137764403] Received end event from lavalink websocket (end): [object Object]

Use Logger for bot

Please use winston for create .log files and log the bot. Can you search a bad usage of bot or an error in this.

Bug Report

If user manualy disconnect bot from vc lastmessage will not edit

Very Importent

Slash commands not working imean not loading to guild
i check the code SlashUpdate.ts not connected to anyware i think that why slash commands not loading

add uptime command

prefix command doesnt work

Describe the bug
when i try to use the *prefix command it gives me "This command is not available anymore to encourage people to use slash command! All bots will stop answering to commands with a prefix like this one!"

To Reproduce
Steps to reproduce the behavior:

  1. use the prefix command
  2. see error

Expected behavior
it would change the prefix

Screenshots
image

Version
Please give these versions:
NodeJs:
Green-bot;

Additional context
Add any other context about the problem here.

Bot not starting

On the packge.json starting script not working and add more info its require packges to install
i run npm run start and npm run dev none of them are working

Help

Commands which require you to type enable and disable do not work such as boost-message , anti-dc and many more and when you use command *help [any command] status always is ✅ even if it the command is not enabled
Example
anti-dc command
IMG_20220220_184611
youtube-alerts command
IMG_20220220_185139

Invalid Package.Json

Latest package.json commit broke package.json (invalid json). Need to remove last comma in dependencies.
fc18a52

Slow bot

when I play music my bot gives the play message too late is this due to replit?
for example when I type "!p shape of you" it gives "playing shape of you" too late or sometimes e4vent it don't give the message

mising script start

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Version
Please give these versions:
NodeJs:
Green-bot;

Additional context
Add any other context about the problem here.

Autoplay not working

The autoplay function is not working.
The bot say "autoplay enabled", but no song is played after the queue is ended.

Typescript rewrite??? 🤔

What about rewriting the bot in typescript? It will offer a better error debugging but we have to compile the code and it could be hard for new users..

Bug?

Greenbot v5 from releases
C:\Users\MrPiesel\Desktop\Green-bot-5(1)\Green-bot-5\index.js:5
const result = await checkConfig(config)
^^^^^

SyntaxError: await is only valid in async functions and the top level bodies of modules
at Object.compileFunction (node:vm:352:18)
at wrapSafe (node:internal/modules/cjs/loader:1031:15)
at Module._compile (node:internal/modules/cjs/loader:1065:27)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12)
at node:internal/main/run_main_module:17:47

The filters are not working when filters are added.

Describe the bug
The filters are not working when filters are added the queue gets cleared and the playback stops.

To Reproduce
Steps to reproduce the behavior:

  1. apply any filter 'appy filters'

Expected behavior
The filters should be applied or if there's some problem inform the user abou that.

Screenshots
1642071836983.

Version
Please give these versions:v7
NodeJs:
Green-bot;

Message spam

on green bot lot of users connect same channel and clicking the buttion (spam) it delete after but getting lot of spams so can you add it like only user can see messages when button click some users don't connect vc and use buttons it give more spams to server
add ephemeral embeds

itry to add it but when i do that slash command got broke i put buttonhandler.ts to e.deferUpdate() it brake the slash commands functionality
can you add ephemeral messages like only button clicked user can see it more help full (remove spams)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.