Give personality to a virtual friend in your gaming server |
Get answers to random trivia from your PC or phone (Discord Mobile) |
Create your very own friendly personal assistant |
https://discord.com/developers/applications
https://platform.openai.com/signup
https://nodejs.org/en/
https://git-scm.com/downloads
git init
https://github.com/Lane-G-Smith/Discord-Bot-Vanilla-JS-GPT-4.git
npm install
TOKEN=your_unique_Discord_bot_token_here
OPENAI_API_KEY=your_unique_OpenAI_API_key_here
Modify a few lines of the code (46-59, self-explanatory when you look at it) to personalize the functionality
The characteristics of your AI and how to answer questions, example questions, example answers
replace "Your-Trigger-Word" with whatever you want
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