Im not programmer.Write it yourself and add a comand for reloading
or learn the language and write an own timer.
So how can I do it?Yeah it's possible, but as I said: the scripts have nothing to do with the client. It won't solve your 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.But please help :>
This is not the answer to my question.Dude, help with what? Its completely useless, just restart your bot and your scripts will reload automatically.
Calm down.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
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 baseOkay, 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'); } }); });