ref: 0fd17aa438b31ae44de5866ecf7060b6b6241576 fletcher/join-behavior.md -rw-r--r-- 1.7 KiB
0fd17aa4Ivy Choy added moderation page 5 months ago

#Join Behaviors


Issue #12

This behavior consists of removing permissions from users who join a guild, sending them a message with information about the rules (currently limited to 2000 characters due to message splitting and technical limitations), and requiring them to agree to it. If they do not answer before the configured timeout, they are automatically kicked.

Configuration example: this is a fletcherrc configuration entry for a guild that requires agreement to "Be nice, don't do crimes." If this is not agreed to in 3600.00 seconds, the user is kicked and the process starts over the next time they join.

[Guild 000000000000000001]
on_member_join_list = lockout
lockout_message = Be nice, don't do crimes.
lockout_timeout = 3600.00

#Randomize Role (aka CRAB)

Issue #50

This behavior consists of assigning a role out of a list of one or more roles to each member joining a server. Randomness is not cryptographically secure, as it uses the building random library. Configuration tip: to get a role ID without too much trouble, set the role to pingable, and use the syntax \@role to return a message that contains the role's ID rather than the display name.

Configuration example: this is a fletcherrc configuration entry for a guild that has two roles to pick between when members join.

[Guild 000000000000000001]
on_member_join_list = randomize_role
randomize_role_list = 000000000000000001,000000000000000001

#Save/Restore Roles

Save roles and restore them on join/remove from server. Prevents softban evasion.

Configuration example:

[Guild 000000000000000001]
on_member_join_list = restore_roles
on_member_remove_list = save_roles