Skip to content

alexbmt84/ChatGPT-Discord-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

ChatGPT-Discord-Bot πŸ€–

Just a fun ChatGPT Discord bot created using OpenAI API.

How to use the bot ? πŸ€–

First of all, you'll need to initialize a project and create a ".env" file in the root folder.

You can as well install discord.js and an openai dotenv by typping this command in the terminal πŸ’» :

npm install discord.js openai dotenv

This is how your .env file needs to look like πŸ’» :

DISCORD_TOKEN = // Your Token
OPENAI_ORG = // Your OpenAI Organisation ID 
OPENAI_KEY = // Your OpenAI API Key

Then, you'll need to πŸ’» :

  • 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.js

Code is commented...

Enjoy ! πŸ’œ

About

Just a fun ChatGPT bot created using OpenAI API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published