Skip to content

ashikkabeer/OpenAi-Discord-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAi-Discord-Chat-Bot

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.

Getting Started

To use this bot in your server, follow these steps:

  1. Clone the repository to your local machine.
  2. Open the project folder in your terminal and run npm install to install the necessary dependencies.
  3. Create a .env file in the project root directory.
  4. 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.
  5. Run the bot by typing npm start in your terminal.

Usage

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.

Contributing

Contributions are welcome! If you would like to contribute to this project, please follow these guidelines:

  1. Fork the repository and create a new branch.
  2. Make your changes and commit them.
  3. Push your changes to your forked repository.
  4. Submit a pull request to the main repository.

License

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published