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.

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.
 

irgendwr

no longer active, "retired" staff member
is awesome!
V.I.P.
is uber awesome!
Contributor
Insider
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.
 

Lala Sabathil

Donor
is awesome!
Contributor
Insider
Write it yourself and add a comand for reloading
or learn the language and write an own timer.
 

irgendwr

no longer active, "retired" staff member
is awesome!
V.I.P.
is uber awesome!
Contributor
Insider
Yeah it's possible, but as I said: the scripts have nothing to do with the client. It won't solve your issue.
 

dziudziu

Member
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
 

irgendwr

no longer active, "retired" staff member
is awesome!
V.I.P.
is uber awesome!
Contributor
Insider
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.
 

Everlike

Well-Known Member
Contributor
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');
    }                                                                                                                                            
    });
});
 

Diesmon

Tuetchen Dominator
is awesome!
Contributor
Insider
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
 

Kir-à

Helping Hand
is awesome!
Contributor
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!
 
Top