Module Rule.Trigger

type t = {
commands : Core.String.Caseless.Set.t;
kinds : Bernard_j_ortcutt.Action.Target.Kind.Set.t;
}

A rule {commands; kinds} is triggered when the bot sees a moderator report with its reason in reasons on a target with whose kinds is in kinds.

So, for example, if there is a rule whose commands include "rule 1" and whose kinds include Action.Target.Kind.t.Comment, a moderator can trigger the rule by reporting a comment with the reason "rule 1".

include Ppx_sexp_conv_lib.Sexpable.S with type Trigger.t := t
val t_of_sexp : Sexplib0__.Sexp.t -> t
val sexp_of_t : t -> Sexplib0__.Sexp.t
val compare : t -> t -> int