Create Ocr Rule

Creates a new automoderation rule with OCR. The bot will then automatically scan images for the selected strings and take actions automatically. Using slashes at the start and end of a rule will be interpreted as Regex using the Rust Regex crate. Otherwise simple string matching is used (case insensitive). Note that OCR is still fairly inaccurate and can cause false positives, use with caution. The ocr_check command runs an image through OCR. This will output a string with those potential inaccuracies. Use that string for determining rules.

Category: Admin Required Permissions: ADMINISTRATOR

Usage

+create_ocr_rule <name: String> <rule: String>

Examples

+create_ocr_rule "something" "something"