Skip to content
This repository was archived by the owner on Oct 2, 2023. It is now read-only.

Commit 0aff77e

Browse files
committed
Improved verification documentation
1 parent fd2c57d commit 0aff77e

File tree

1 file changed

+56
-20
lines changed

1 file changed

+56
-20
lines changed
Lines changed: 56 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,104 @@
11
# Verification
22

3-
This Cog is used to add a verification system.
3+
This cog is used to add a verification system that adds or removes certain roles from a user when they send the bot a command with a pre-set password via direct messages.
44

55

6-
## add
6+
## `verification`
77

8+
The `.verification` command shows the current verification configuration. This includes the roles that will be added or removed from the user (verification roles), the configured password and the amount of time a user has to be a member of the server before they can verify.
89

9-
With the `add` subcommand you can add a verification role.
10-
If you set `reverse` to `true`, the role will be removed from the user instead of added.
10+
11+
### `add`
12+
13+
The `add` subcommand adds a verification role. If you set `reverse` to `true`, the role will be removed from the user instead of being added. Note that verification will fail if the user does not have all reverse verification roles!
1114

1215
```css
1316
.verification [add|a|+] <role> [reverse=False]
1417
```
1518

1619
Argument | Required | Description
1720
---------|---------------------|------------
18-
role | :heavy_check_mark: | The verification role
19-
reverse | | The role assignment will be reversed => role will be removed
21+
`role` | :heavy_check_mark: | The verification role
22+
`reverse` | | Remove this role instead of adding it to the user.
2023

2124
Required permissions:
2225

23-
- `settings.change_prefix`
26+
- `verification.read`
27+
- `verification.write`
2428

2529

26-
## delay
30+
### `remove`
2731

28-
29-
Set the time a user has to be on the server until they can verify.
32+
The `remove` subcommand removes an existing verification role.
3033

3134
```css
32-
.verification [delay|d] <seconds>
35+
.verification [remove|r|-] <role>
3336
```
3437

3538
Argument | Required | Description
3639
---------|---------------------|------------
37-
delay | :heavy_check_mark: | The time in seconds
40+
`role` | :heavy_check_mark: | The verification role
41+
42+
Required permissions:
3843

44+
- `verification.read`
45+
- `verification.write`
3946

40-
## password
4147

48+
### `password`
4249

43-
Sets the *secret* password the user will need to verify.
50+
The `password` subcommand sets the *secret* password the user will need to verify.
4451

4552
```css
4653
.verification [password|p] <password>
4754
```
4855

4956
Argument | Required | Description
5057
---------|---------------------|------------
51-
password | :heavy_check_mark: | The password as string
58+
`password` | :heavy_check_mark: | The password as string
59+
60+
Required permissions:
61+
62+
- `verification.read`
63+
- `verification.write`
5264

5365
!!! note
54-
The password has a max-length of 256 characters.
66+
The password has a maximum length of 256 characters.
5567

5668

57-
## remove
69+
### `delay`
5870

71+
The `delay` subcommand sets the amount of time a user has to be on the server before they can verify.
5972

60-
Removes an existing verification.
73+
```css
74+
.verification [delay|d] <seconds>
75+
```
76+
77+
Argument | Required | Description
78+
---------|---------------------|------------
79+
`delay` | :heavy_check_mark: | The amount of time in seconds
80+
81+
Required permissions:
82+
83+
- `verification.read`
84+
- `verification.write`
85+
86+
87+
## `verify`
88+
89+
The `verify` command is used by server members to verify themselves. If the specified password is correct and the configured delay has elapsed, the configured verification roles will be added or removed from the member.
6190

6291
```css
63-
.verification [remove|r|-] <role>
92+
verify <password>
6493
```
6594

6695
Argument | Required | Description
6796
---------|---------------------|------------
68-
role | :heavy_check_mark: | The verification role
97+
`password` | :heavy_check_mark: | The verification password
98+
99+
!!! note
100+
As this command can only be used in private messages, it does not start with the configured bot prefix! So, for example, if the configured password is `Tr0ub4dor&3` a user would have to send this exact message to the bot to complete verification:
101+
<!-- markdownlint-disable-next-line MD038 -->
102+
```
103+
verify Tr0ub4dor&3
104+
```

0 commit comments

Comments
 (0)