Giter Club home page Giter Club logo

line-mewbot's Introduction

MewBot - The Cat Expert

MewBot is a LINE chatbot that knows everything about cats. It uses OpenAI's GPT-3 model to generate responses, making it a knowledgeable and engaging companion for all cat lovers. Whether you want to know about different cat breeds, understand cat behavior, or just hear some fun cat facts, MewBot is here to help!

Setup

  1. Clone this repository to your local machine.
  2. Install the required Python packages with pip install -r requirements.txt.
  3. Set your environment variables in a .env file in the root directory of the project. This file should include your LINE Channel Secret, LINE Channel Access Token, OpenAI API Key, and OpenAI API Base URL.

Tutorial

For a step-by-step guide on setting up and using MewBot, check out this 運用 Azure OpenAI 服務打造聰明的 LINE 聊天機器人 — 實作教學.

Running the Bot

To run the bot locally, you need to set up a tunneling service like ngrok to expose your local server to the internet. Once you've set up ngrok or a similar service, you can run the bot with python index_chat.py.

Copy the temporary ngrok domain and modify your LineBot Webhook URL accordingly, which should look like this: https://xxxx.ngrok-free.app/callback

Verify the webook url, if the status returns success, you will be able to run the Line Chatbot.

Deploying to Vercel

You can deploy the bot to Vercel using the Vercel CLI or through GitHub:

Vercel CLI

  1. Install the Vercel CLI with npm i -g vercel.
  2. Deploy the project with vercel.
  3. Set your environment variables in the Vercel dashboard.

GitHub

  1. Push your project to a GitHub repository.
  2. Log in to Vercel and go to the "Import Project" page.
  3. Select "Import Git Repository" and authorize Vercel to access your GitHub account.
  4. Select the repository that you want to deploy.
  5. Vercel will automatically detect that you're deploying a Python project and fill in the build settings for you. If it doesn't, you can manually set the Build Command to pip install -r requirements.txt && python index_chat.py and the Output Directory to ..
  6. Click "Deploy" to deploy your project.
  7. Set your environment variables in the Vercel dashboard.

Usage

Once your MewBot is up and running, you can start using it by sending messages through the LINE app. The bot will respond with information and facts about cats generated by the GPT-3 model. Remember, MewBot is not a traditional chatbot, but a completion bot. It generates a continuation of the text provided to it, making the conversation more dynamic and engaging.

Customization

MewBot is fully customizable. You can modify the code to change how the bot responds to certain inputs, or to add new features. For example, you could add a feature that allows the bot to send images or stickers in response to certain messages.

Contributing

Contributions to MewBot are welcome! If you have a feature request, bug report, or proposal for improving the bot, please open an issue on GitHub. If you'd like to contribute code, please open a pull request.

Support

If you need help with MewBot, please open an issue on GitHub. We'll do our best to help you out.

License

MewBot is open source software licensed under the MIT license. See the LICENSE file for more information.

Thank you for using MewBot! We hope you find it useful.

line-mewbot's People

Contributors

jazzpujols34 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.