Code Monkey home page Code Monkey logo

Comments (10)

galnir avatar galnir commented on May 25, 2024 1

Hello @galnir ?

9103818

from master-bot.

galnir avatar galnir commented on May 25, 2024

@Firezzzz If you encounter bugs let me know

from master-bot.

FirezTheGreat avatar FirezTheGreat commented on May 25, 2024

image

i meant something like this..

from master-bot.

galnir avatar galnir commented on May 25, 2024

longvideo
shortvideo

@Firezzzz Let me know if there's a bug or if it acts weird :)

from master-bot.

FirezTheGreat avatar FirezTheGreat commented on May 25, 2024

image
i am not using commando so i have edited your code a little bit, everythin seems to work fine except the formatDuration function
i have tried console logging them and it seems that this line
playBack =${passedTimeFormatted} ${playBack} ${totalDurationFormatted};
comes as
Promise { '[object Promise] :musical_note:▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ [object Promise]' } when i console.log(playbackBar(video))
Here's my current code, please help when you are free
https://hastebin.com/okituzahac.js
video.duration is of simple-youtube-api so your formatDuration function should work with that

from master-bot.

galnir avatar galnir commented on May 25, 2024

@Firezzzz This probably happens because you declared formatDuration and playbackBar as async functions, and async functions return Promises. Try to remove the async keyword, it's not needed, these functions are meant to be synchronous.

from master-bot.

FirezTheGreat avatar FirezTheGreat commented on May 25, 2024

image
i was able to fix the object promise but when i tested the command, i noticed that the musical note emoji wont come when there is 20 or 15 seconds left, i want the musical note emoji to be there till the last and not just disappear.

from master-bot.

galnir avatar galnir commented on May 25, 2024

I fixed it then forgot to push it to GitHub, I'll push it tommorow

from master-bot.

FirezTheGreat avatar FirezTheGreat commented on May 25, 2024

ok

from master-bot.

FirezTheGreat avatar FirezTheGreat commented on May 25, 2024

Hello @galnir ?

from master-bot.

Related Issues (20)

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.