Discord.js |
A simple vanilla javascript Discord bot for interacting with the new language model Code-Davinci-002 from OpenAI. This bot can serve as an invaluable coding buddy and debugging tool. |
https://discord.com/developers/applications
https://platform.openai.com/signup
https://nodejs.org/en/
https://git-scm.com/downloads
git init
git clone https://github.com/Lane-G-Smith/Vanilla-JS-Code-Davinci-002-Discord-Bot.git
npm install
TYPE THIS EXACTLY, IT IS CASE SENSITIVE: TOKEN=your_unique_token_here
TYPE THIS EXACTLY, IT IS CASE SENSITIVE: OPENAI_API_KEY=your_unique_API_key_here
node index.js
npm install pm2 -g
run your bot locally using pm2 https://pm2.keymetrics.io/
pm2 start index.js
congratulations, your bot should now be live & confirmation should be logged in the terminal. Use your personal link from the Discord developer portal to invite your bot to a Discord server
https://discord.com/developers/applications