fac30sb / discord-chatbot-emma-egbie

0 stars 0 forks source link

13. Automated Moderation Features #13

Closed electricblues closed 7 months ago

electricblues commented 7 months ago

Hint: Monitor messages for specific keywords or patterns using client.on(Events.MessageCreate, callback). Implement moderation actions like message.delete() for removing inappropriate content and guildMember.timeout() for muting users.

electricblues commented 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.