Alternative to "My AI", by Snapchat, but on Discord.
Go to file
2024-01-27 22:40:03 +01:00
copeai_backend feat: v2 2024-01-16 21:37:43 +01:00
views feat: wip, v2 2024-01-16 21:07:39 +01:00
.gitignore feat: v2 2024-01-16 21:37:43 +01:00
base-prompt.txt Error handler, modified base prompt 2023-04-12 16:56:14 +00:00
main.py fix: Fixed bot not remembering conversations at startup 2024-01-27 22:40:03 +01:00
README.md Renamed tokens.db to tokens.db.example 2023-07-29 01:14:16 +00:00
requirements.txt Intitial commit 2023-04-12 16:30:42 +00:00
tokens.db.example Renamed tokens.db to tokens.db.example 2023-07-29 01:14:16 +00:00

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

  1. Install Python >= 3.8.10
  2. Install requirements with python3 -m pip install -U -r requirements.txt
  3. Rename tokens.db.example to tokens.db
  4. Create a .env file 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]

The tokens.db.example database is blank and contains no data.