discordpythonartificial-intelligenceasynciobotchatbotdalle2deeplembeddingsextractive-question-answeringfault-tolerantgpt3help-wantedimage-generatormoderationmoderator-botopenaiopenai-apipineconetranslator
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Kaveen Kumarasinghe
ed1b81f2cf
|
2 years ago | |
---|---|---|
cogs | 2 years ago | |
models | 2 years ago | |
README | 2 years ago | |
main.py | 2 years ago | |
requirements.txt | 2 years ago | |
sample.env | 2 years ago |
README
# Requirements
`python3.7 -m pip install openai`
`python3.7 -m pip install dotenv`
`python3.7 -m pip install discord` (This should be the discord.py rewrite, not the pycord library)
OpenAI API Key (https://beta.openai.com/docs/api-reference/introduction)
Discord Bot Token (https://discord.com/developers/applications)
Both the OpenAI API key and the Discord bot token needed to be loaded into a .env file in the same local directory as the bot file.
```
OPENAI_TOKEN="TOKEN"
DISCORD_TOKEN="TOKEN"
```
# Usage
`python3.7 main.py`
# Commands
`!g` - Display help text for the bot
`!gp` - Display settings for the model (temperature, top_p, etc)
`!gs <setting> <value>` - Change a model setting to a new value
`!g <prompt>` Ask the GPT3 Davinci 003 model a question.