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

Developing the topic

dziudziu

Member
Hello,

can You send me more description about:

AllowReload = false
EnableTimer = false
DisableLegacyEvents = false
ScriptTimeout = 5

I need auto-reload scripts after 30 minutes? It's possible? Without restart bot or stop / start bots.
 
Why to you want to reload the scripts constantly?
Reloading the scripts doesn't have anything to do with the client and it doesn't fix the client deadlock issue.
 
Yeah it's possible, but as I said: the scripts have nothing to do with the client. It won't solve your issue.
 
Dude, help with what? Its completely useless, just restart your bot and your scripts will reload automatically.
This is not the answer to my question.
If you have no say in this matter, please do not speak.
I need reload script without restart bots :> IT'S HARD TO UNDERSTAND?!

Regards
 
This is not the answer to my question.
If you have no say in this matter, please do not speak.
I need reload script without restart bots :> IT'S HARD TO UNDERSTAND?!

Regards
Calm down.
If you add a new script you *need* to restart the bot. Reloading will not load new scripts.
We are not answering your question because this will not do what you want.
 
Okay, here you go my friend, just install and activate this script, then restart the bot, and then just write a message containing !reload to the bot, and the bot will reload all your scripts, but it will propably don´t fit your real needs!
JavaScript:
registerPlugin({
    name:'reloadScripts',
    version: '0.1',
    description:'Reload Scripts when writing the bot !reload',
    author: 'everlike - [email protected]',

}, function(sinusbot, config) {
var event = require('event');
var engine = require('engine');
var backend = require('backend');
event.on('chat', function(ev) {

    if (ev.text.indexOf('!reload') >= 0) {                                                                            
            engine.reloadScripts();
            ev.client.chat('I reloaded the scripts successfully');
    }                                                                                                                                            
    });
});
 
Okay, here you go my friend, just install and activate this script, then restart the bot, and then just write a message containing !reload to the bot, and the bot will reload all your scripts, but it will propably don´t fit your real needs!
JavaScript:
registerPlugin({
    name:'reloadScripts',
    version: '0.1',
    description:'Reload Scripts when writing the bot !reload',
    author: 'everlike - [email protected]',

}, function(sinusbot, config) {
var event = require('event');
var engine = require('engine');
var backend = require('backend');
event.on('chat', function(ev) {

    if (ev.text.indexOf('!reload') >= 0) {                                                                          
            engine.reloadScripts();
            ev.client.chat('I reloaded the scripts successfully');
    }                                                                                                                                          
    });
});
He wanted it time base
 
Okay, here you go my friend, just install and activate this script, then restart the bot, and then just write a message containing !reload to the bot, and the bot will reload all your scripts, but it will propably don´t fit your real needs!
JavaScript:
registerPlugin({
    name:'reloadScripts',
    version: '0.1',
    description:'Reload Scripts when writing the bot !reload',
    author: 'everlike - [email protected]',

}, function(sinusbot, config) {
var event = require('event');
var engine = require('engine');
var backend = require('backend');
event.on('chat', function(ev) {

    if (ev.text.indexOf('!reload') >= 0) {                                                                           
            engine.reloadScripts();
            ev.client.chat('I reloaded the scripts successfully');
    }                                                                                                                                           
    });
});

Funny fact I was looking for decades, thanks lol!
 
Back
Top Bottom