mirror of
https://github.com/wassname/talk.git
synced 2026-07-25 13:30:59 +08:00
First draft of toxic-comments
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
const apiKey = process.env.TALK_PERSPECTIVE_API_KEY;
|
||||
if(!apiKey) {
|
||||
throw new Error('Please set the TALK_PERSPECTIVE_API_KEY environment variable to use the toxic-comments plugin. Visit https://www.perspectiveapi.com/ to request API access.');
|
||||
}
|
||||
|
||||
module.exports = apiKey;
|
||||
Reference in New Issue
Block a user