Closed electricblues closed 7 months ago
we can use the openAi moderation API to check if the prompts contain any content going against openai's policies before passing on the prompt to openai for a response. https://platform.openai.com/docs/guides/moderation/quickstart
We can do this in addition of deleting messages and/or banning users.
Hint: Monitor messages for specific keywords or patterns using
client.on(Events.MessageCreate, callback)
. Implement moderation actions likemessage.delete()
for removing inappropriate content andguildMember.timeout()
for muting users.