Peru Leni Jeevi is a versatile Discord bot designed to assist with a variety of tasks, including mathematical queries, programming assistance, general knowledge questions, and real-time information retrieval. The bot leverages multiple language models to provide accurate and helpful responses.
- Mathematical Assistance: Handles mathematical queries using the DeepSeek API.
- Programming Assistance: Provides coding help and optimizations using DeepSeek and Editee APIs.
- General Knowledge: Answers general knowledge questions using GPT-4.
- Real-Time Information: Retrieves current information using the Gemini model.
- Uncensored Responses: Provides uncensored responses for specific queries using the WhiteRabbit API.
- Periodic Summarization: Summarizes chat history periodically to maintain context.
- Forum Channel Monitoring: Monitors a specified forum channel for user queries.
- LLM Training: Trains the LLM when the
/train
command is run by the server owner. - Website Functionality: Creates a website for chatting with the LLM or showcasing the Discord bot.
- Python 3.8 or higher
- Discord bot token
- DeepSeek API token
- Editee API access
- WhiteRabbit API access
-
Clone the repository:
git clone https://github.com/Likhithsai2580/peru-leni-jeevi.git cd peru-leni-jeevi
-
Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install the required dependencies:
pip install -r requirements.txt
-
Create a
.env
file in the root directory and add your tokens:DISCORD_BOT_TOKEN=your_discord_bot_token DEEPSEEK=your_deepseek_api_token COOKIES=your_whiterabbit_cookies
-
Start the bot:
python main.py
-
The bot will log in and start monitoring the specified forum channel for user queries.
- Set Forum Channel: Use the
/set_forum_channel
command to set the forum channel for the bot to monitor. This command requires administrator permissions. - Start Conversation: Use the
/start
command to initiate a conversation with the bot in a thread within the specified forum channel. - Train LLM: Use the
/train
command to train the LLM. This command requires administrator permissions.
The bot includes a website that serves two purposes:
- Chat with the LLM: If any trained file is generated, the website allows users to chat with the LLM.
- Showcase the Discord Bot: If no training data is generated, the website showcases the Discord bot.
To access the website, navigate to http://localhost:5000
after starting the bot.
Contributions are welcome! Please fork the repository and submit a pull request with your changes.
This project is licensed under the MIT License. See the LICENSE file for details.