templock - shinyfinder/chatot-smogon GitHub Wiki
Availability: All Guilds
/templock
Example:
/templock
- Chatot: View Channel, Manage Roles ("Manage Permissions" in Channel settings)
- Users: Manage Roles
Summary: Temporarily prevents a user from viewing a channel.
This command adds a channel override to prevent the specified user(s) from seeing the channel. Users are selected from a multiselect menu in a followup message. The channel and lockout duration are specified using the /config templocks channel command. This separation allows this command to be freed to more people, while limiting their ability to abuse the functionality. If a user is already locked out from a channel using this command, running it again for that user will reset their lockout. For example, a user is locked out at noon for 3 hours (will be freed at 15:00). At 13:30, a staff member reapplies the lockout to their account. The user will now be freed at 16:30, another 3 hours from the time this command was rerun.
For a user locked out by this command, this command overwrites and ultimately removes any user-specific overrides in a channel's permissions for that user. So if a user is locked out, any channel permissions specific to that user will need to be reapplied after the lockout is removed. Role settings are unaffected.
Chatot is immune to this command. The command will still function for targeted users with the Admin permission; however, it will have no effect because Admins are immune to being removed from a channel.
Lockouts can be manually removed early in the Permissions menu of the channel's settings. Click on the permission overwrite for the user, then scroll to the bottom and click the Remove button.
Temporary lockouts are a supported logging function; see config logging channel to set that up. When users are locked out from a channel, Chatot will also repond to that channel with the list of user's who were locked out, so regular users know it's safe. This happens regardless of your configured logging settings.