mirror of
https://github.com/zhigang1992/probot.github.io.git
synced 2026-01-12 22:49:53 +08:00
1.7 KiB
1.7 KiB
title, description, slug, screenshots, stars, author, repository
| title | description | slug | screenshots | stars | author | repository | |
|---|---|---|---|---|---|---|---|
| Sentiment Bot | Replies to toxic comments with a maintainer designated reply and a link to the repo's code of conduct | sentiment-bot |
|
5 | hiimbex | behaviorbot/sentiment-bot |
Replies to toxic comments with a maintainer designated reply and a link to the repo's code of conduct. It does so by taking data from a .github/config.yml.
You can tell from this example just how toxic I am 😜
Usage
- Install the bot on the intended repositories. The plugin requires the following Permissions and Events:
- Issues: Read & Write
- Issue Comment events
- Add a
.github/config.ymlfile that contains the following:
# Configuration for sentiment-bot - https://github.com/behaviorbot/sentiment-bot
# *Required* toxicity threshold between 0 and .99 with the higher numbers being the most toxic
# Anything higher than this threshold will be marked as toxic and commented on
sentimentBotToxicityThreshold: .7
# *Required* Comment to reply with
sentimentBotReplyComment: >
Please be sure to review the code of conduct and be respectful of other users. cc/ @hiimbex
# Note: the bot will only work if your repository has a Code of Conduct
- Be sure to check out the Perspective API before choosing your toxicity threshold to get a feel for what kind of comments would register at what toxicity threshold.