A Discord bot that implements the ChatGPT AI intelligence
These modules need to be installed:
$ pip install -U Flask
$ python3 -m pip install -U discord.py
$ pip install openai
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
And for Discord, you will need to create an application from the following page:
https://discord.com/developers/applications
(In "Bot" option)
And paste both keys in:
openai.api_key = TOKEN
bot.run(TOKEN)
with quotes