Skip to content

Latest commit

 

History

History
42 lines (25 loc) · 839 Bytes

README.md

File metadata and controls

42 lines (25 loc) · 839 Bytes

Chatgpt Discord bot

A Discord bot that implements the ChatGPT AI intelligence

Requirements

These modules need to be installed:

$ pip install -U Flask
$ python3 -m pip install -U discord.py
$ pip install openai

TOKENS

To obtain the OpenAI API key, you will need to have an account and go to the following page:

https://platform.openai.com/account/api-keys

alt openaikey

And for Discord, you will need to create an application from the following page:

https://discord.com/developers/applications

(In "Bot" option)

alt discordkey

And paste both keys in:

openai.api_key = TOKEN
bot.run(TOKEN)

with quotes