Alternative to "My AI", by Snapchat, but on Discord.
| copeai_backend | ||
| views | ||
| .gitignore | ||
| base-prompt.txt | ||
| main.py | ||
| README.md | ||
| requirements.txt | ||
| tokens.db.example | ||
myai-discord
Alternative to "My AI", by Snapchat, but on Discord.
Installation Steps
Preparing your environnement
- Create your Discord bot here
- Enable Members and Messages intents.
- Create your OpenAI Developer Account here
Setting up the bot
- Install Python >= 3.8.10
- Install requirements with
python3 -m pip install -U -r requirements.txt - Rename
tokens.db.exampletotokens.db - Create a
.envfile to setup your environnement variables.
MAX_TOKEN_PER_REQUEST = [Maximum tokens per request] (recommended: 1800-2000)
TOKEN = [Your Discord bot's token]
OPENAI_API_KEY = [OpenAI Token -- can be found at https://platform.openai.com/account/api-keys]