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

Script not loaded / crashed. Took too long: Timeout

Status
Not open for further replies.
Operating System: Windows
SinusBot Version: 0.9.21
TS3 Version: 3.1.4.2

Problem Description
i am running my bot primarily to execute scripts that change channel titles etc.
since i updated the bot doesnt work anymore. it still joins the server but the scripts dont work

error:
Code:
Script not loaded / crashed. Took too long: Timeout
 

mxschmitt

Moderator
Staff member
is awesome!
V.I.P.
is uber awesome!
Contributor
Insider
Send us the script^^ without we can't help you ;)
 
one script that causes that:
Code:
registerPlugin({
  name: 'afkSetter',
  version: '1.0',
  description: 'afk-stuff',
  author: 'TheTh0rus',
  vars: [],
},function(sinusbot, config, info) {
    var clientson = [];
    var clientsmid = [];
    var clientsoff = [];
  setInterval(function() { main(); }, 10000);
     
    sinusbot.on('poke', function(ev) {
            main();
    });
     
        function main() {
            var backend = require('backend');
            var clients = backend.getClients();
        clients.forEach(function(client) {
                if(client.isMuted() ||client.isDeaf() || client.isAway() && client.uniqueID().toString() !=  "J/KqievQaUg/fZqXghd7Xbu9Wos=" && client.uniqueID().toString() !=  "a6/P8jy3EBIzqJJdRcDYdagb7mc=") {
                    if(clientson.indexOf(client.databaseID()) === -1 && clientsmid.indexOf(client.databaseID()) === -1) {
                        clientson.push(client.databaseID());
                    }
                } else {
                    if(clientson.indexOf(client.databaseID()) !== -1 || clientsmid.indexOf(client.databaseID()) !== -1) {
                        clientsmid.splice(clientsmid.indexOf(client.databaseID()),1);
                        clientsoff.push(client.databaseID());
                    }
                }
        });
     
    setTimeout(function() {
        clientson.forEach(function(client) {
                clientson.splice(clientson.indexOf(client),1);
                clientsmid.push(client);
                sinusbot.addClientToServerGroup(client,4003);
                sinusbot.log(client);
        });
     
        clientsoff.forEach(function(client) {
            clientsoff.splice(clientson.indexOf(client),1);
            sinusbot.removeClientFromServerGroup(client,4003);
        });
        }, 5000);
     
    }
     
});
its a script that gives muted users a rank that infinite idletime
 
Last edited:

irgendwr

no longer active, "retired" staff member
is awesome!
V.I.P.
is uber awesome!
Contributor
Insider
Stop pushing this topic, at least one of your scripts is faulty, this is not an issue with the bot.
disable them one by one to find the faulty one(s)
 

irgendwr

no longer active, "retired" staff member
is awesome!
V.I.P.
is uber awesome!
Contributor
Insider
instead of disabling try removing all scripts one by one from the scripts folder and reloading the bot
 
Status
Not open for further replies.
Top