This commit is contained in:
Cadey Ratio 2020-07-05 07:41:28 -04:00
parent 065e655773
commit fb6894e9c5
3 changed files with 20 additions and 6 deletions

8
Cargo.lock generated
View File

@ -234,7 +234,7 @@ dependencies = [
[[package]]
name = "discord_webhook"
version = "0.1.0"
source = "git+https://github.com/Xe/withinbot?branch=main#6637b55316dde27836a25b1f94f55140c4d70245"
source = "git+https://github.com/Xe/withinbot?branch=main#613fa49536dd9c8895a71f72cf3bc9faef156a46"
dependencies = [
"reqwest",
"serde",
@ -335,8 +335,8 @@ checksum = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7"
[[package]]
name = "furbooru"
version = "0.3.0"
source = "git+https://github.com/Xe/furbooru#1af4851486d5f104235c492da29e81809dfb00b1"
version = "0.3.1"
source = "git+https://github.com/Xe/furbooru#589dcaf2b5a0cc5c32c9ea5f1ad291b00183e10b"
dependencies = [
"anyhow",
"async-trait",
@ -1511,7 +1511,7 @@ checksum = "e987b6bf443f4b5b3b6f38704195592cca41c5bb7aedd3c3693c7081f8289860"
[[package]]
name = "tron"
version = "0.1.0"
version = "0.1.1"
dependencies = [
"anyhow",
"async-trait",

View File

@ -1,6 +1,6 @@
[package]
name = "tron"
version = "0.1.0"
version = "0.1.1"
authors = ["Christine Dodrill <me@christine.website>"]
edition = "2018"
repository = "https://tulpa.dev/cadey/tron"

View File

@ -3,4 +3,18 @@ let Rule =
, default = { regex = "", why = "" }
}
in [ Rule::{ regex = "(n|z)igg(er|a)", why = "racism" } ]
in [ Rule::{ regex = "(n|z)igg(er|a)", why = "racism" }
, Rule::{ regex = "(idiot|stupid|dumb)", why = "slurs" }
, Rule::{ regex = "autist", why = "slur" }
, Rule::{ regex = "insane", why = "slur" }
, Rule::{ regex = "(re|)tard(|ed)", why = "ableism" }
, Rule::{ regex = "schizo", why = "ableism" }
, Rule::{ regex = "(hitler|trump)", why = "contentious political figures" }
, Rule::{ regex = "tran(ny|nie)", why = "transphobia" }
, Rule::{ regex = "fag", why = "homophobia" }
, Rule::{ regex = "\\b1488\\b", why = "white supremacist" }
, Rule::{
, regex = "transsexual"
, why = "probably false alarm, but transphobia"
}
]