This is a Discord bot that utilizes the OpenAI API to answer questions. It reads messages in a Discord server and provides responses based on the content.
To use this bot in your server, follow these steps:
- Clone the repository to your local machine.
- Open the project folder in your terminal and run
npm install
to install the necessary dependencies. - Create a
.env
file in the project root directory. - In the
.env
file, create the following variables:OPENAI_API
- Assign it to your OpenAI API token.TOKEN
- Assign it to your Discord app token.
- Run the bot by typing
npm start
in your terminal.
To interact with the bot, simply send a message in the Discord server. To get a response from the bot, add an exclamation mark (!
) before your message.
Contributions are welcome! If you would like to contribute to this project, please follow these guidelines:
- Fork the repository and create a new branch.
- Make your changes and commit them.
- Push your changes to your forked repository.
- Submit a pull request to the main repository.