Skip to content

This is a simple Discord ChatBot built with JavaScript, and OpenAI that uses OpenAI's GPT-3 to generate responses to user messages.

Notifications You must be signed in to change notification settings

Mo-Shakib/OpenAI-Discord-ChatBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAI Discord ChatBot

A simple Discord chatbot that uses OpenAI's GPT-3 to respond to user messages. Built with JavaScript, discord.js, and openai.js.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

You will need the following things properly installed on your computer.

  • Node.js
  • Discord account
  • OpenAI API key

Installing

Clone the repository

https://github.com/Mo-Shakib/OpenAI-Discord-ChatBot.git

Install the dependencies

npm install openai discord.js dotenv

Create a .env file in the root of the project and add your Discord bot token and OpenAI API key like this:

DISCORD_TOKEN=your_discord_token 
OPENAI_API_KEY=your_openai_api_key

Run the bot

npm start

Usage

The bot will respond to messages sent in any channel that it has access to. Simply invite the bot to your Discord server and start chatting with it.

Built With

  1. JavaScript
  2. discord.js
  3. openai.js

Contributing

Fork it! Create your feature branch: git checkout -b my-new-feature Commit your changes: git commit -am 'Add some feature' Push to the branch: git push origin my-new-feature Submit a pull request :D

About

This is a simple Discord ChatBot built with JavaScript, and OpenAI that uses OpenAI's GPT-3 to generate responses to user messages.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published