Giter Site home page Giter Site logo

lwjerri / jeelangamusic Goto Github PK

View Code? Open in Web Editor NEW
38.0 5.0 13.0 616 KB

Discord bot for play YouTube music by url, name with other fun features.

License: Other

JavaScript 100.00%
discordjs express ffmpeg klaw momentjs nodemon prettier ts-node typescript ytdl-core

jeelangamusic's Introduction

LWJerri (Andrii Zontov) ⭐

Hello! I am a backend Node.js developer from Ukraine πŸ‡ΊπŸ‡¦.

  • 🌐 Visit my portfolio website to learn more about me, my projects and contact information.
  • πŸ’‘ You can also support my projects by donating here.

jeelangamusic's People

Contributors

androz2091 avatar dependabot[bot] avatar eagles666 avatar lwjerri avatar shaynlink avatar skyemarlow 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

Watchers

 avatar  avatar  avatar  avatar  avatar

jeelangamusic's Issues

Queue music

Hello ! I have a project to add a system that automatically puts a music via its id in the queue without going through the play command. Can you help me ?

play.js error

Sometimes I get error TypeError: Video id (undefined) does not match expected format (/^[a-zA-Z0-9-_]{11}$/) on play.js:67:35.

URL player

If user type play URL bot join to voice and start playing track (Skip menu track selector).

DiscordAPI error (2980)

Every time the music queue is empty and the bot sends 'The playlist is empty' , I get this error in the console log

(node:2980) UnhandledPromiseRejectionWarning: DiscordAPIError: Unknown Message
    at RequestHandler.execute (D:\mika\node_modules\discord.js\src\rest\RequestHandler.js:170:25)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:2980) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:2980) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Is there a way to fix this?

seek command bug

  1. Set limit for seek track length.
  2. If track big and write *seek, bot start to lag.

Error: Could not find player confi

(node:10320) UnhandledPromiseRejectionWarning: Error: Could not find player config
at exports.getBasicInfo (C:\Users\rmota\Documents\Ambiente\mika\node_modules\ytdl-core\lib\info.js:59:13)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Function.exports. [as getBasicInfo] (C:\Users\rmota\Documents\Ambiente\mika\node_modules\ytdl-core\lib\info.js:296:18)
at async MessageCollector. (C:\Users\rmota\Documents\Ambiente\mika\commands\music\play.js:178:24)
(node:10320) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:10320) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Custom user playlist

  • buffer add [URL] - Add song to user playlist.
  • buffer remove [Position track] - Remove track from playlist.
  • buffer - List of all user tracks.
  • buffer play {all} - Play custom user playlist.

queue embed error

If the queue has >2048 letter bot send error DiscordAPIError: Invalid Form Body
embed.description: Must be 2048 or fewer in length..
.

Can you make please list the queue with a button ➑ or β¬…?

loop command bug

  1. User can write random numbers or letters and bot repeat this.
  2. loop once work incorrectly. Must play track 1 time.

Time: NaNa

When i do now playing command the embed show NaNa in the duration

Search is null

If search nothing found, send user message Track not found!

play command bug #2

  1. If the track is already playing and enter play, then the track will start playing again.
  2. Sometimes if the track is already playing and enter play [Name/URL], then the track will start playing again.

play command bug

When user type 2 times in a row song name or URL and select song, bot send error DiscordAPIError: Unknown Message.

skip command bug

If the last track is playing in the queue and you enter skip, the bot will not skip this track and will not leave the channel, but should.

remove.js

this command doesn't remove any songs from the queue. it only reacts with πŸ’’

time bug

  1. If the track runs for more than 9 hours, the timer gets lost and displays an incorrect time.
  2. If the time goes over 100 hours, the timer starts showing the time from 0.

leave command

When user run leave bot leaves the channel and clear queue. (Ex: command destroy).

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.