• TeamSpeak has reported a vulnerability in it's client that can potentially lead to RCE. A new version has been released that fixes it. So please update the client in your bot installation as soon as possible as well. Click here for more information.
  • If you need help or want to discuss things, you now can also join us on our Discord Server!

Script not loaded / crashed. Took too long: Timeout

Status
Not open for further replies.

TheTh0rus

Member
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

Looking for another possibility to make sports.
Staff member
is awesome!
V.I.P.
Contributor
Insider
Send us the script^^ without we can't help you ;)
 

TheTh0rus

Member
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

semi-inactive™
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

semi-inactive™
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.

Similar threads

Top