You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
752 B
JavaScript
50 lines
752 B
JavaScript
10 years ago
|
"use strict";
|
||
|
|
||
|
var rewards = {};
|
||
|
|
||
|
|
||
|
rewards.get = function(callback) {
|
||
|
callback({
|
||
|
conditions: ["Reputation", "Post Count", "Last Logged in Time"],
|
||
|
conditionals: [">", ">=", "<", "<=", "is string:"],
|
||
|
rewards: [
|
||
|
{
|
||
|
"rewardID": 0,
|
||
|
"name": "Add to Group",
|
||
|
"inputs": [
|
||
|
{
|
||
|
"type": "select",
|
||
|
"name": "groupname",
|
||
|
"values": ["Group 1", "Group 2", "Group 3"],
|
||
|
}
|
||
|
],
|
||
|
"disabled": 0
|
||
|
},
|
||
|
{
|
||
|
"rewardID": 0,
|
||
|
"name": "Send alert message",
|
||
|
"inputs": [
|
||
|
{
|
||
|
"type": "text",
|
||
|
"name": "title",
|
||
|
},
|
||
|
{
|
||
|
"type": "text",
|
||
|
"name": "message",
|
||
|
}
|
||
|
],
|
||
|
"disabled": 0
|
||
|
}
|
||
|
]
|
||
|
})
|
||
|
};
|
||
|
|
||
|
function getConditions() {
|
||
|
|
||
|
}
|
||
|
|
||
|
function getRewards() {
|
||
|
|
||
|
}
|
||
|
|
||
|
module.exports = rewards;
|