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.1.1.tar.gz (4.7 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.1.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for versecbot_reaction_limiter-0.1.1.tar.gz
Algorithm Hash digest
SHA256 570b0e31b055c1865bd45e34d080baa9aa9f6daa52daeceb91058c245a702be1
MD5 a40ba6a033aeb844789df8d174b6a185
BLAKE2b-256 76590bafd0cd67a5d22fe649c44f50b7598f8619f3ed75504f673d561660e320

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for versecbot_reaction_limiter-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7b30b0b044b05a17645a20c3ab16752de96bce6ebb2f9491ce223a07303854c2
MD5 3bc2eb21e3c1314a8d519d09cc1bbab9
BLAKE2b-256 23c690bc8f967166d7916c081dda6de00d21a882331e046f06d368e8c8588e0d

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