Skip to content

Instantly share code, notes, and snippets.

@macdja38
Created January 15, 2017 21:07
Show Gist options
  • Save macdja38/a521300035a1717ac6db48971a706ba8 to your computer and use it in GitHub Desktop.
Save macdja38/a521300035a1717ac6db48971a706ba8 to your computer and use it in GitHub Desktop.
dynamic config page db page init
r.db("tau").table("settingsMap").insert({id: "38383838338|97069403178278912", layout: {
type: 'pageSelector',
key: 'pageSelector',
defalut: 'ranks',
children: {
ranks: {
type: 'category',
name: 'ranks',
key: 'ranks',
description: 'joinable ranks',
children: {
deleteAfter: {
type: 'boolean',
name: 'delete after input for ranks',
key: 'deleteAfter',
value: false,
description: 'Deletes the users input after running a command and deletes the bot\'s response after a delay',
},
deleteDelay: {
type: 'number',
name: 'delete delay (seconds)',
key: 'deleteDelay',
value: 0,
description: 'How long after the command is executed should the input be deleted (seconds)',
},
joinableRanks: {
type: 'list',
name: 'delete delay (seconds)',
key: 'joinableRanks',
value: [],
content: {
type: 'role',
},
description: 'list of ranks that should be excusive',
},
exclusive: {
type: 'boolean',
key: 'exclusive',
name: 'exclusive',
value: false,
description: 'yea... this is obvious',
},
},
},
cats: {
type: 'category',
name: 'cats',
key: 'cats',
description: 'cat provider',
children: {
deleteAfter: {
type: 'boolean',
name: 'delete after input for cats',
key: 'deleteAfter',
value: false,
description: 'Deletes the users input after running a command and deletes the bot\'s response after a delay',
},
deleteDelay: {
type: 'number',
name: 'delete delay (seconds)',
key: 'deleteDelay',
value: 0,
description: 'How long after the command is executed should the input be deleted (seconds)',
},
catText: {
type: 'text',
name: 'delete delay (seconds)',
key: 'joinableRanks',
value: "",
description: 'list of ranks that should be excusive',
},
exclusive: {
type: 'boolean',
key: 'exclusive',
name: 'exclusive',
value: false,
description: 'yea... this is obvious',
},
},
},
},
}}, {conflict: "replace"})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment