Skip to content

Commit

Permalink
Update messageCreate.js
Browse files Browse the repository at this point in the history
  • Loading branch information
iTzArshia committed Sep 26, 2023
1 parent 313800a commit a403e2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion events/messageCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ module.exports = async (client, message) => {
const openai = new openAI.OpenAI({ apiKey: config.OpenAIapiKey });

openai.moderations.create({


model: 'text-moderation-stable',
input: message.content

}).then(async (response) => {
Expand Down

0 comments on commit a403e2c

Please sign in to comment.