A discord bot based on multi-modal LLM that interacts with discord through natural language
翻訳待ち
Loading the full README.
Read the full README ↗English | 繁體中文
PigPig is a powerful, multi-modal Discord bot powered by Large Language Models (LLMs). It's designed to interact with users through natural language, combining advanced AI capabilities with practical, fun features to enrich any Discord community.
To ensure user rights and service transparency, please refer to the following documents:
Essential Dependencies:
FFmpeg Installation:
Ubuntu/Debian: sudo apt update && sudo apt install ffmpeg
CentOS/RHEL: sudo yum install epel-release && sudo yum install ffmpeg
macOS: brew install ffmpeg
Windows: Download from FFmpeg Windows builds
Python packages listed in requirements.txt
# Clone the repository
git clone https://github.com/starpig1129/discord-LLM-bot-PigPig.git
# Navigate to the project directory
cd discord-LLM-bot-PigPig
# Install required Python packages
pip install -r requirements.txt
Follow these steps to configure your bot instance.
.env fileRename the .env Example file to .env and fill in the required values.
# .env
# --- Discord Bot Credentials ---
TOKEN=XXXXXXXXXXXXXXXXXXXXXXXX.XXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXX
CLIENT_ID=123456789012345678
CLIENT_SECRET_ID=XXXXXXXXXX-XXXXXXXXXXXXXXXXXXXXX
# --- Dashboard Secret ---
# Generate with: python3 -c "import secrets; print(secrets.token_urlsafe(64))"
DASHBOARD_SECRET_KEY=<generate-a-random-64-char-secret>
# --- Bot Configuration ---
BOT_OWNER_ID=123456789012345678
BUG_REPORT_CHANNEL_ID=123456789012345678
# --- AI Model Configuration ---
MODEL_NAME=openbmb/MiniCPM-o-2_6
ANTHROPIC_API_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
OPENAI_API_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
GEMINI_API_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# --- Vector Database API Keys ---
VECTOR_STORE_API_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# --- Bot Configuration File Path ---
CONFIG_ROOT="/path/to/your/config"
This is the beginning of the README. Read the rest at the original. Read the full README ↗