Skip to content

Commit

Permalink
GITBOOK-1181: rolecommands: update tutorial example
Browse files Browse the repository at this point in the history
  • Loading branch information
jo3-l authored and gitbook-bot committed Feb 27, 2023
1 parent 771018a commit 480cf76
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 14 deletions.
Binary file added .gitbook/assets/image (1) (1).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .gitbook/assets/image (1).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/image (19).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/image (2) (1).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .gitbook/assets/image (2).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/image (9) (1).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .gitbook/assets/image (9).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions reference/regex.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,5 @@ If you still do not know what Regex are or want to know more. Check out the chea

## Great tools for writing and testing Regex

{% embed url="https://regex-golang.appspot.com/" %}

{% embed url="https://regex101.com/" %}

2 changes: 1 addition & 1 deletion tools-and-utilities/automoderator.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ There are two things available across all rules, which we will talk about here.

Violations are important in both Basic Automoderator and AutomodV2 (if you wish to transition to it later). In Basic Automoderator, **violations** are used to keep track of how many infractions a user has, with an optional expiry time. This is very useful for doing an action after several violations have occurred, such as muting the user if, say, they have spammed three times in a row.

![Violation options (shared for all rules)](<../.gitbook/assets/image (9).png>)
![Violation options (shared for all rules)](<../.gitbook/assets/image (9) (1).png>)

In every rule, you can configure giving violations after an optional expiry time, and act on them if the violations for a given user have gone past a defined amount. The three actions available are:

Expand Down
21 changes: 10 additions & 11 deletions tools-and-utilities/self-assignable-roles.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,24 +118,23 @@ Make sure you created your [role commands ](self-assignable-roles.md#roles)and a
{% endhint %}

Once you've made your role commands and assigned them to a role group,\
go to the channel in Discord where you want the role menu to be created. There you type `-rolemenu create (role group name)` (in my example, the role group name is "Gender").
go to the channel in Discord where you want the role menu to be created. There you type `-rolemenu create (role group name)` (in this example, the role group name is "Sports").

![](../.gitbook/assets/sar1.PNG)
<figure><img src="../.gitbook/assets/image (19).png" alt=""><figcaption></figcaption></figure>

As you can see the bot started creating the menu. It'll ask you to add the emoji for a role. In this case the role is the **Female** role. I'll react on the message with emote I want associated with the female role.&#x20;
As you can see, the bot started creating the menu, and has asked you to add the emoji for the first role, **Soccer**. I'll react on the message with my emoji of choice:&#x20;

![](../.gitbook/assets/sar2.PNG)
<figure><img src="../.gitbook/assets/image (1).png" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Make sure to react on the original message (The one with the other reaction) If you add it to the other message of the bot, it won't do anything.
{% endhint %}
Now the bot wants you to react with the emoji for the second role, **Hockey:**

<figure><img src="../.gitbook/assets/image (9).png" alt=""><figcaption></figcaption></figure>

Now the bot wants you to react on the **first** message for the next role, in this case the **Male** role.
And similar for the final role, **Basketball:**

![Note: Male reaction was on the same message as the female reaction message](../.gitbook/assets/sar3.PNG)
<figure><img src="../.gitbook/assets/image (2).png" alt=""><figcaption></figcaption></figure>

From now on people can start using the menu by clicking on the specific reaction. \
The unnecessary message will be automatically deleted in a couple of minutes.
And we're done — people can start using the menu by clicking on the reaction associated with their desired role. The setup message will be automatically deleted in a couple of minutes, but you can also delete it manually if you so desire.

### Custom message

Expand Down

0 comments on commit 480cf76

Please sign in to comment.