# package manager
uv
-
Clone the repository
-
Create a virtual environment:
uv venv env
-
Activate the virtual environment:
source env/bin/activate
-
Install dependencies:
uv pip install -r requirements.txt
Create a .env
file in the project root and add your bot token:
TOKEN=your_bot_token
// DEFAULT IS OPENAI
OPENAI_API_KEY=<token>
GEMINI_API_KEY=<token>
# Run the bot
python main.py
# Run with auto-restart on file changes
watchmedo auto-restart --recursive --pattern="*.py" -- python main.py
In your Discord server, run:
$index
$index
— Indexes thefaq.json
file$reload_index
— Reloads the BM25 index$sync
— Syncs slash commands