|
1 | 1 | # Verification |
2 | 2 |
|
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. |
4 | 4 |
|
5 | 5 |
|
6 | | -## add |
| 6 | +## `verification` |
7 | 7 |
|
| 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. |
8 | 9 |
|
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! |
11 | 14 |
|
12 | 15 | ```css |
13 | 16 | .verification [add|a|+] <role> [reverse=False] |
14 | 17 | ``` |
15 | 18 |
|
16 | 19 | Argument | Required | Description |
17 | 20 | ---------|---------------------|------------ |
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. |
20 | 23 |
|
21 | 24 | Required permissions: |
22 | 25 |
|
23 | | -- `settings.change_prefix` |
| 26 | +- `verification.read` |
| 27 | +- `verification.write` |
24 | 28 |
|
25 | 29 |
|
26 | | -## delay |
| 30 | +### `remove` |
27 | 31 |
|
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. |
30 | 33 |
|
31 | 34 | ```css |
32 | | -.verification [delay|d] <seconds> |
| 35 | +.verification [remove|r|-] <role> |
33 | 36 | ``` |
34 | 37 |
|
35 | 38 | Argument | Required | Description |
36 | 39 | ---------|---------------------|------------ |
37 | | -delay | :heavy_check_mark: | The time in seconds |
| 40 | +`role` | :heavy_check_mark: | The verification role |
| 41 | + |
| 42 | +Required permissions: |
38 | 43 |
|
| 44 | +- `verification.read` |
| 45 | +- `verification.write` |
39 | 46 |
|
40 | | -## password |
41 | 47 |
|
| 48 | +### `password` |
42 | 49 |
|
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. |
44 | 51 |
|
45 | 52 | ```css |
46 | 53 | .verification [password|p] <password> |
47 | 54 | ``` |
48 | 55 |
|
49 | 56 | Argument | Required | Description |
50 | 57 | ---------|---------------------|------------ |
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` |
52 | 64 |
|
53 | 65 | !!! note |
54 | | - The password has a max-length of 256 characters. |
| 66 | + The password has a maximum length of 256 characters. |
55 | 67 |
|
56 | 68 |
|
57 | | -## remove |
| 69 | +### `delay` |
58 | 70 |
|
| 71 | +The `delay` subcommand sets the amount of time a user has to be on the server before they can verify. |
59 | 72 |
|
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. |
61 | 90 |
|
62 | 91 | ```css |
63 | | -.verification [remove|r|-] <role> |
| 92 | +verify <password> |
64 | 93 | ``` |
65 | 94 |
|
66 | 95 | Argument | Required | Description |
67 | 96 | ---------|---------------------|------------ |
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