A simple Discord chatbot that uses OpenAI's GPT-3 to respond to user messages. Built with JavaScript, discord.js, and openai.js.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
You will need the following things properly installed on your computer.
- Node.js
- Discord account
- OpenAI API key
https://github.com/Mo-Shakib/OpenAI-Discord-ChatBot.git
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
npm start
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.
- JavaScript
- discord.js
- openai.js
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