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"