Twentysix26 / x26-Cogs

General purpose cogs for Red V3
GNU General Public License v3.0
41 stars 28 forks source link

[Feature request] Add CommentAnalysis as a condition. #25

Open whos-evan opened 3 years ago

whos-evan commented 3 years ago

This will be useful for when a message passes a threshold and an attribute set by the condition. An example config;

rank: 2
name: SEVERE_TOXICITY above 80
event: [on-message]
if-all:
  - commentanalysis_attributes: "SEVERE_TOXICITY"
  - commentanalysis_threshold: 80
  - is-staff: false
do:
  - issue-command: "mute $user_id"