[+] gh moderator config

Co-Authored-By: AI Content Moderator <132312177+ai-moderator@users.noreply.github.com>
This commit is contained in:
Azalea Gui 2023-05-01 20:07:25 -04:00
parent 857037fa37
commit 4fe0890f21
3 changed files with 12 additions and 0 deletions

1
.gitignore vendored
View file

@ -118,3 +118,4 @@ dmypy.json
._*
webhook-log
start_moderation.sh
gh_moderator.toml

View file

@ -1,2 +1,3 @@
Symbolic11
GentlemanMC
dr03m

1 Symbolic11
2 GentlemanMC
3 dr03m

View file

@ -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"