From fb6894e9c55f2722aabf7fb5abb64c7ce8b7c109 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sun, 5 Jul 2020 07:41:28 -0400 Subject: [PATCH] oops --- Cargo.lock | 8 ++++---- Cargo.toml | 2 +- regexes.dhall | 16 +++++++++++++++- 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2af6cef..94c8e09 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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", diff --git a/Cargo.toml b/Cargo.toml index 923d42e..26d63a3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tron" -version = "0.1.0" +version = "0.1.1" authors = ["Christine Dodrill "] edition = "2018" repository = "https://tulpa.dev/cadey/tron" diff --git a/regexes.dhall b/regexes.dhall index 317205f..e69b569 100644 --- a/regexes.dhall +++ b/regexes.dhall @@ -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" + } + ]