@langx/copilot

0.2.0 • Public • Published

🤖 LangX Copilot

LangX Copilot is an innovative AI-powered tool designed to enhance your language learning journey. This feature-rich platform offers personalized feedback to improve your language skills in real-time. LangX Copilot ensures your privacy while providing corrections and explanations directly to you.

Demo

You can try out LangX Copilot in the #copilot channel on Discord.

Example

What can it do?

  • 🚧 Grammar Correction: The bot can correct grammar mistakes in your messages.
  • Suggest Next Message: The bot can suggest what to say next based on the context of the conversation.
  • Better Way to Say: The bot can suggest a better way to express your thoughts.
  • Suggest New Topic: The bot can suggest a new topic of conversation when the current topic has been exhausted.
  • And more: The bot has many more features to explore!

You can try it out in the #copilot channel on Discord.

Features

  • Personalized Feedback: Get real-time corrections and explanations to enhance your language learning.
  • Grammar Correction: Automatically corrects grammar mistakes and provides detailed explanations.
  • Privacy Focused: Feedback is provided confidentially, ensuring your privacy is maintained.
  • Supports Multiple Languages: Not limited to English, LangX Copilot supports various languages for grammar correction.

Getting Started

Installation

  1. Clone the repository:

    git clone
    cd copilot
  2. Copy .env file with the following environment variables:

    cp .env.sample .env
  3. Fill in the environment variables in the .env file:

    DISCORD_BOT_TOKEN=your_discord_token
    DISCORD_CLIENT_ID=your_discord_client_id
    
    OPENAI_API_KEY=your_openai_api_key
    OPENAI_ASSISTANT_ID=your_openai_assistant_id
  4. Deploy Appwrite Functions:

    1. Open the appwrite.json file in a text editor.
    2. Update the projectName field with your projectId.
    3. Save the changes to the appwrite.json file.
    4. Open a terminal or command prompt in the directory where your appwrite.json file is located.
    5. Install the Appwrite CLI by running the following command:
       npm install -g appwrite-cli
  5. Deploy the Appwrite functions by running the following command:

       appwrite deploy --functionId copilot

    Deploy the Appwrite functions, ensuring that the environment variables are correctly set during the deployment process. We utilize Git integration for deployment. For more information on deploying Appwrite functions, refer to the Appwrite Functions Documentation.

    Please note that you need to have the Appwrite CLI installed and authenticated with your Appwrite project before running the appwrite functions deploy command.

Discord Bot

Detailed instructions for installing and configuring the Discord bot are provided in a separate document. This includes steps for setting up your environment, configuring the bot, and deploying it to a server.

Please refer to the Discord Bot Documentation for more information.

Contributing

Feel free to contribute to this project and help us improve LangX Copilot. You can contribute by opening a PR or creating an issue easily.

We welcome all contributions, including bug fixes, new features, and improvements to the documentation.

License

This project is licensed under BSD 3-Clause License. See the LICENSE file for more details.

Package Sidebar

Install

npm i @langx/copilot

Weekly Downloads

5

Version

0.2.0

License

BSD-3-Clause

Unpacked Size

298 kB

Total Files

21

Last publish

Collaborators

  • xuelink