[+] gh moderator config
Co-Authored-By: AI Content Moderator <132312177+ai-moderator@users.noreply.github.com>
This commit is contained in:
parent
857037fa37
commit
4fe0890f21
3 changed files with 12 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -118,3 +118,4 @@ dmypy.json
|
|||
._*
|
||||
webhook-log
|
||||
start_moderation.sh
|
||||
gh_moderator.toml
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
Symbolic11
|
||||
GentlemanMC
|
||||
dr03m
|
||||
|
|
|
10
tools/gh_moderator.example.toml
Normal file
10
tools/gh_moderator.example.toml
Normal 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"
|
Loading…
Reference in a new issue