PigPig is a powerful Discord bot based on multi-modal Large Language Models (LLM), designed to interact with users through natural language. It combines advanced AI capabilities with practical features, offering a rich experience for Discord communities.
git clone https://github.com/starpig1129/discord-LLM-bot-PigPig.git #Clone the repository cd PigPig-discord-LLM-bot #Go to the directory python -m pip install -r requirements.txt #Install required packages
After installing all packages, you must configure the bot before to start! How To Configure
Start your bot with python main.py
.env Example
to .env
and fill all the valuesTOKEN = XXXXXXXXXXXXXXXXXXXXXXXX.XXXXXX.XXXXXXXXXXXXXXXXXXXXXXXXXXX CLIENT_ID = 123456789012345678 CLIENT_SECRET_ID = XXXXXXXXXX-XXXXXXXXXXXXXXXXXXXXX SERCET_KEY = DASHBOARD_SERCET_KEY BUG_REPORT_CHANNEL_ID = 123456789012345678 LLM_MODEL_NAME = shenzhi-wang/Llama3-8B-Chinese-Chat VQA_MODEL_NAME = openbmb/MiniCPM-Llama3-V-2_5-int4 ANTHROPIC_API_KEY = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX OPENAI_API_KEY = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX GEMINI_API_KEY = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Values | Description |
---|---|
TOKEN | Your Discord bot token (Discord Portal) |
CLIENT_ID | Your Discord bot client id (Discord Portal) |
CLIENT_SECRET_ID | Your Discord bot client secret id (Discord Portal) (optional) |
SERCET_KEY | Secret key for dashboard (optional) |
BUG_REPORT_CHANNEL_ID | All the error messages will send to this text channel (optional) |
ANTHROPIC_API_KEY | Your Anthropic api key (Anthropic API) (optional) |
OPENAI_API_KEY | Your OpenAI api key (OpenAI API) (optional) |
GEMINI_API_KEY | Your GEMINI API key (GEMINI API) (optional) |
settings Example.json
to settings.json
and customize your settingssettings.json
){ "prefix": "/", "activity": [ { "paly": "\u5b78\u7fd2\u8aaa\u8a71" } ], "ipc_server": { "host": "127.0.0.1", "port": 8000, "enable": false }, "version": "v1.2.0" }
This bot utilizes a modular design with several cogs (modules) to handle different functionalities. Here's a brief overview:
This project is licensed under the MIT License - see the LICENSE file for details.
There are no models linked
There are no datasets linked
There are no models linked
There are no datasets linked