syscaller
Active Member
Sinusbot-Version: v1.0.0-beta.10-202ee4d
The
but not in a second layer like this:
The
sinusbot-commands.js v1.0.0
has implemented the feature of default values for the config of a script. However, this feature only works fine in the first layer:
JSON:
vars: [
{
name: 'createSuccessReaction',
title: 'Add a reaction to each command if it was successfull.',
type: 'checkbox',
default: true //This will work perfectly :)
},
]
JSON:
vars: [
{
name: 'testarray'
title: 'example Array which does not allow default values'
type: 'array'
vars: [
{
name: 'createSuccessReaction',
title: 'Add a reaction to each command if it was successfull.',
type: 'checkbox',
default: true //This will not work :(
}
]
}
]
Last edited: