From 4fe0890f218bc7adb8c5abd6df528114dd52b8a3 Mon Sep 17 00:00:00 2001 From: Azalea Gui Date: Mon, 1 May 2023 20:07:25 -0400 Subject: [PATCH] [+] gh moderator config Co-Authored-By: AI Content Moderator <132312177+ai-moderator@users.noreply.github.com> --- .gitignore | 1 + tools/blacklist_users.csv | 1 + tools/gh_moderator.example.toml | 10 ++++++++++ 3 files changed, 12 insertions(+) create mode 100644 tools/gh_moderator.example.toml diff --git a/.gitignore b/.gitignore index 414057ed..28a970cb 100644 --- a/.gitignore +++ b/.gitignore @@ -118,3 +118,4 @@ dmypy.json ._* webhook-log start_moderation.sh +gh_moderator.toml diff --git a/tools/blacklist_users.csv b/tools/blacklist_users.csv index 30b7929a..c4ab3dab 100644 --- a/tools/blacklist_users.csv +++ b/tools/blacklist_users.csv @@ -1,2 +1,3 @@ Symbolic11 GentlemanMC +dr03m diff --git a/tools/gh_moderator.example.toml b/tools/gh_moderator.example.toml new file mode 100644 index 00000000..133428b2 --- /dev/null +++ b/tools/gh_moderator.example.toml @@ -0,0 +1,10 @@ +# Secret of Github Webhook to verify the request is from Github +webhook_secret = "secret" + +# Github token and repo to regulate +gh_token = "token" +gh_repo = "owner/repo" + +# AI harm classifier token +harm_classifier_url = "https://example.com/classify" +harm_classifier_token = "token"