-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathhelp.js
37 lines (37 loc) · 1.1 KB
/
help.js
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
module.exports = {
description: 'accept and create pub/followbot invites',
commands: {
create: {
type: 'async',
description: 'create an invite code, must be called on a pub with a static address',
args: {
uses: {
type: 'number',
description: 'number of times this invite may be used'
},
modern: {
type: 'boolean',
description: 'return an invite which is also a multiserver address. all modern invites have a single use'
},
external: {
type: 'Host',
description: "overide the pub's host name in the invite code"
},
note: {
type: 'any',
description: 'metadata to attach to invite. this will be included in the contact message when the pub accepts this code'
}
}
},
accept: {
type: 'async',
description: 'accept an invite, connects to the pub, requests invite, then follows pub if successful',
args: {
invite: {
type: 'InviteCode',
description: 'the invite code to accept'
}
}
}
}
}