This repository contains the basic code for an AI chatbot using OpenAI's api. You may change whatever you like.
- You need to get Discord
- Next you need to head over to the Developer-Portal, from there you need to create your bot and get your bots token
- Rename example.env to .env, and paste your bot token
- Your bots gonna need permissions, so stay on Developer-Portal.
- Go click OAuth2
- Click URL Generator, and sent these permissions.
- bot
- Send messages
- Read Message History
You need to download some depdendencies.
initialize the npm install.
npm init -yinstall discord.js, open, dotenv
npm install discord.js openai dotenv