Comments (10)
Hello @galnir ?
from master-bot.
@Firezzzz If you encounter bugs let me know
from master-bot.
i meant something like this..
from master-bot.
@Firezzzz Let me know if there's a bug or if it acts weird :)
from master-bot.
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.
@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.
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.
I fixed it then forgot to push it to GitHub, I'll push it tommorow
from master-bot.
ok
from master-bot.
Hello @galnir ?
from master-bot.
Related Issues (20)
- Alternative Postgres Hosting HOT 3
- Unable to run BOT after following setup bot guides HOT 9
- Unable to start up bot HOT 6
- bot cannot respond from container HOT 9
- Gif commands not working HOT 6
- Discussion - bot compatibility with other bots HOT 9
- Invalid enviroment Variables on startup HOT 3
- Crash when attempting to play song HOT 8
- Try signing in with a different account HOT 5
- napi-rs/canvas is not marked as a dependency
- Twitch command not working HOT 4
- Top and Controversial not working in Reddit command HOT 2
- Error: P1000: Authentication failed against database server at `localhost` HOT 5
- npm run dev:bot exited with code -4058 & npm run dev:dashboard exited with code -4058 HOT 8
- `npm run dev` outputting multiple errors HOT 1
- Features to be added back after turborepo rewrite HOT 2
- pnpm i fails HOT 10
- STUCK : Watching for files changes HOT 9
- Not able to access website and bot not responding on discord. HOT 3
- Docker Deployment HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from master-bot.