Skip to content

This Discord bot allows users to trigger an update process for the LibreChat server directly from a Discord server. The bot provides a convenient way to perform server updates without the need for direct server access.

License

Notifications You must be signed in to change notification settings

LibreChat-AI/LibreChat-DiscordBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LibreChat-DiscordBot

The LibreChat-DiscordBot is a versatile and user-friendly Discord bot designed to streamline interactions with your LibreChat server. With this bot, you can effortlessly manage the LibreChat server directly from your Discord server, eliminating the need for direct server access. It offers an array of functionalities to enhance your LibreChat experience.

Bot Capabilities:

  • /ping

    📞 Ping the bot

    • Quickly assess the bot's latency, displayed in milliseconds.
  • /librechat

    🌐 Explore LibreChat URLs

    • Instantly access key LibreChat resources, including GitHub, Documentation, Discord, and YouTube.
  • /path

    📂 Configure the LibreChat path

    • Set the path for the LibreChat folder.
    • Utilize either an absolute path format (e.g., C:\LibreChat) or a relative path format (relative to the bot folder, e.g., ../LibreChat).
  • /env

    ⚙️ Manage the .env file

    • Download: Retrieve a copy of the .env file from the LibreChat folder.
    • Upload: Replace the current .env file with a new one. A backup of the current file will be created.
    • Restore: Restore the backup of the .env file and delete the current one.
    • Example: Obtain the .env.example from the LibreChat folder.
  • /docker

    🐳 Regular Docker commands

    • Start: Start the Docker container.
    • Stop: Stop the Docker container.
    • Update: Update the LibreChat server.
    • Status: Display the status of all Docker containers.
  • /docker-single

    🐳 Docker commands for single-compose.yml

    • Similar to regular Docker commands but specific to the single-compose.yml configuration.
  • /local

    💻 Commands for local LibreChat install

    • Start: Start the LibreChat server locally.
    • Stop: Stop the local LibreChat server.
    • Update: Update the local LibreChat server.
  • /balance

    💸 Set credit balance for a user

    • user email is required
    • Set the following .env variable to enable this CHECK_BALANCE=true
    • 1000 credits = $0.001

⚠️ Warning: When using this bot, exercise caution with command permissions. It is strongly recommended to limit bot command permissions to yourself or trusted individuals. We advise using the bot on a private discord server to minimize risks. This precaution is crucial as certain commands allow manipulating the .env file, and have the potential to expose sensitive API keys.


☝️ Please visit the Wiki for detailled instruction on how to install and use the bot!


TL;DR

  • Clone or download the repo on a computer where LibreChat is installed
  • Install the requirements with: pip install -r requirements.txt
  • Rename bot_config.py.example to bot_config.py
  • Go to the Discord Developer Portal and create an application
  • Add your Bot Token and Client ID to the bot_config.py file
  • Start the bot with: python bot.py

About

This Discord bot allows users to trigger an update process for the LibreChat server directly from a Discord server. The bot provides a convenient way to perform server updates without the need for direct server access.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages