VerSecBot plugin to restrict reactions based on user roles.
Project description
VerSecBot - Reaction Limiter
This plugin instructs VerSecBot to only allow specific roles to add message reactions in a given channel. If a user without a matching role tries to react, VerSecBot will remove the reaction.
This was created to allow public polls with a subset of voters.
To use it, install the package and add the following block to your configuration, replacing values in <> with your desired values:
[versecbot.plugins.reaction_limiter]
enabled = true
[[versecbot.plugins.reaction_limiter.handlers]]
enabled = true
channel_ids = [list of channels that should be restricted]
roles_required = [list of roles that can react in specified channels]
[[versecbot.plugins.reaction_limiter.handlers]]
enabled = true
channel_ids = [list of channels that should be restricted]
roles_required = [list of roles that can react in specified channels]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file versecbot_reaction_limiter-0.1.1.tar.gz.
File metadata
- Download URL: versecbot_reaction_limiter-0.1.1.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
570b0e31b055c1865bd45e34d080baa9aa9f6daa52daeceb91058c245a702be1
|
|
| MD5 |
a40ba6a033aeb844789df8d174b6a185
|
|
| BLAKE2b-256 |
76590bafd0cd67a5d22fe649c44f50b7598f8619f3ed75504f673d561660e320
|
File details
Details for the file versecbot_reaction_limiter-0.1.1-py3-none-any.whl.
File metadata
- Download URL: versecbot_reaction_limiter-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b30b0b044b05a17645a20c3ab16752de96bce6ebb2f9491ce223a07303854c2
|
|
| MD5 |
3bc2eb21e3c1314a8d519d09cc1bbab9
|
|
| BLAKE2b-256 |
23c690bc8f967166d7916c081dda6de00d21a882331e046f06d368e8c8588e0d
|