Deprecated: Use of "parent" in callables is deprecated in /var/www/html/forum/src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php on line 431
  • If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

Solved !next and media.playNext()

Vizi

Member
Hey .. i just started to rewrite all comands for my bot to be case insensitive + some features to them but i stuck on NEXT command... it works well if i use default next comamnd, when i created mine thigs happend. if i have IDLE playlist on, it start palying allways 1st track of this playlist., when i turned it off it's completly stops palying
It's sinusbot version beta1 ( i cant run beta 3,4,5 cause of my cpu, also i didnt find in changelogs that anything was changed to this.
My code:
Code:
        if(arg[0].toLowerCase() == "!next"){       
             
                media.playNext();
                setTimeout(function(){            
                    var tracknext = media.getCurrentTrack();
                    ev.client.chat(tracknext.title() + " - " + tracknext.artist());
                }, 2000);
         
        }
LOGS when idle playlist turned off
2019-08-23T22:48:01+02:00 Done playing
2019-08-23T22:48:01+02:00 Channels now zero
2019-08-23T22:48:01+02:00 Deleting channel 51b3e1e6-64a8-4b32-b6ff-6b703fefa80f () ID 5d4ebb4d-15d1-4f0e-bb8d-2d1e224f1b6e (cc 1)
2019-08-23T22:48:01+02:00 Removing closed channel 51b3e1e6-64a8-4b32-b6ff-6b703fefa80f () ID 5d4ebb4d-15d1-4f0e-bb8d-2d1e224f1b6e
2019-08-23T22:48:01+02:00 Sending stop to 51b3e1e6-64a8-4b32-b6ff-6b703fefa80f () ID 5d4ebb4d-15d1-4f0e-bb8d-2d1e224f1b6e #1
2019-08-23T22:48:01+02:00 Stopping
2019-08-23T22:48:01+02:00 Could not send chat command: HTTP returned an error: Error; Code: 500; Message: Error
2019-08-23T22:48:01+02:00 Sending stop to 51b3e1e6-64a8-4b32-b6ff-6b703fefa80f () ID 5d4ebb4d-15d1-4f0e-bb8d-2d1e224f1b6e #1
2019-08-23T22:48:01+02:00 Stopping
2019-08-23T22:48:01+02:00 Could not send chat command: HTTP returned an error: Error; Code: 500; Message: Error
2019-08-23T22:47:52+02:00 Storing configuration.

also same command but for media.playPrevious(); works normal
 
Last edited:
Top