• 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.

EN Auto Stop in playlist.

I am trying to find a way to prevent autoplay on my playlist.

registerPlugin({
name: 'Demo Script',
version: '1.0',
description: 'This example actually does nothing',
author: 'Author <author[at]example.com>',
vars: []
}, function(sinusbot, config) {

var event = require("event");
var media = require("media");


event.on("trackEnd", function (ev) {
media.stop();
});
});

Script loads without error but doesn't stop autoplaying of playlist files.
 
Top