Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

versecbot_reaction_limiter-0.2.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

versecbot_reaction_limiter-0.2.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file versecbot_reaction_limiter-0.2.0.tar.gz.

File metadata

File hashes

Hashes for versecbot_reaction_limiter-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e06fa894da16323aa97b5503083952d57fbcb87c791e1c7453a1977fa68255fb
MD5 8816213d24ce85f9a977c1ea6801af51
BLAKE2b-256 36a1b9dd78f4c72c33731f3919e394155c69bd9720c2062e5e71586089294562

See more details on using hashes here.

File details

Details for the file versecbot_reaction_limiter-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for versecbot_reaction_limiter-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0079485976d133cb74ec2cc7f65283e72ae76f0e5747284dddd487d272c8fde8
MD5 af536f2c4b6edba126ee3e4afcdd80c5
BLAKE2b-256 84e8d88e097e8636c4e2d454da6be72af0b32c9b2dc696b5e77f993954a02a3c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page