Files
talk/plugins/talk-plugin-toxic-comments/server/apiKey.js
T
2017-09-06 22:11:48 +07:00

7 lines
273 B
JavaScript

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;