In this chapter, we’re going to take the steps necessary in order to make our content moderator discord bot artificially
intelligent. Let’s overview the changes that we’re going to make:
Create a new script for ourselves,
moderation_client.py, to invoke the
OpenAI.moderations.create() method of the
OpenAI API. The Moderations model allows us to be aware when any textual content fits any of the following categories: