-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathplugin.json
More file actions
57 lines (57 loc) · 1.71 KB
/
plugin.json
File metadata and controls
57 lines (57 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"id": "nodebb-rewards-essentials",
"name": "Essential Rewards Starter Pack",
"description": "This plugin comes with some basic core conditions. Use this as a skeleton to create your own reward packs.",
"url": "https://github.com/NodeBB/nodebb-rewards-essentials",
"library": "./library.js",
"hooks": [
{
"hook": "filter:rewards.conditions", "method": "conditions.get"
},
{
"hook": "filter:rewards.rewards", "method": "rewards.get"
},
{
"hook": "action:rewards.award:essentials/add-to-group", "method": "rewards.addToGroup"
},
{
"hook": "action:rewards.award:essentials/remove-from-group", "method": "rewards.removeFromGroup"
},
{
"hook": "action:rewards.award:essentials/alert-user", "method": "rewards.alertUser"
},
{
"hook": "action:rewards.award:essentials/award-reputation", "method": "rewards.awardReputation"
},
{
"hook": "filter:rewards.conditionals", "method": "conditionals.get"
},
{
"hook": "filter:rewards.checkConditional:greaterthan", "method": "conditionals.greaterthan"
},
{
"hook": "filter:rewards.checkConditional:greaterorequalthan", "method": "conditionals.greaterorequalthan"
},
{
"hook": "filter:rewards.checkConditional:lesserthan", "method": "conditionals.lesserthan"
},
{
"hook": "filter:rewards.checkConditional:lesserorequalthan", "method": "conditionals.lesserorequalthan"
},
{
"hook": "filter:rewards.checkConditional:string", "method": "conditionals.string"
},
{
"hook": "action:post.upvote", "method": "onUpvote"
},
{
"hook": "action:user.online", "method": "onOnline"
},
{
"hook": "action:post.save", "method": "onPost"
},
{
"hook": "action:user.create", "method": "onUserCreate"
}
]
}