You can as well install discord.js and an openai dotenv by typping this command in the terminal π» :
npm install discord.js openai dotenvDISCORD_TOKEN = // Your Token
OPENAI_ORG = // Your OpenAI Organisation ID
OPENAI_KEY = // Your OpenAI API Key-
Create a Discord server.
-
Login into your Discord account following this URL : https://discord.com/developers/applications.
-
Create an application and a new bot token.
-
Login into your OpenAI account to get your API Key and Organisation Key.
-
Link the Discord token and OpenAI Keys into your .env file.
-
Start the server by typing the command π» :
node .\index.jsEnjoy ! π