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

adding UID to scripts?

Status
Not open for further replies.

Danieldan5152

New Member
So I'm new to this and want to add UIDS so scripts but I have no Idea where they go or how they must beformatted
this is how most scripts look. Clarifcation will be nice.

ids: {
title: 'Client Unique Ids (Comma seperated):',
type: 'string'
},
 

irgendwr

no longer active, "retired" staff member
is awesome!
V.I.P.
is uber awesome!
Contributor
Insider
So I'm new to this and want to add UIDS so scripts but I have no Idea where they go or how they must beformatted
this is how most scripts look. Clarifcation will be nice.

ids: {
title: 'Client Unique Ids (Comma seperated):',
type: 'string'
},
Go to your Webinterface > Settings > Scripts and then click on the arrow icon and enter them there.
The title says how they are supposed to be formatted -> Comma seperated.
Don't forget to save your changes.
 

mxschmitt

Moderator
Staff member
is awesome!
V.I.P.
is uber awesome!
Contributor
Insider
Ref:
Code:
registerPlugin({
    name: 'XXX',
    version: '1.0',
    description: 'This a example of a Script Test',
    author: 'maxibanki <[email protected]>',
    vars: [{
        name: 'testing',
        title: 'Some testing text to demonstrate that this is the title of the config parameter called testing',
        type: 'string'
    }]
}, function(sinusbot, config) {
    var event = require('event');
    event.on("chat", function(ev) {
        ev.client.chat('Hi, ' + ev.client.name() + ', you just wrote: ' + ev.text + ' the config paramter: ' + config.testing);
    });


});

Activate the script and send a message to the bot, the bot should answer you :)
 
Last edited:
Status
Not open for further replies.
Top