GithubHelp home page GithubHelp logo

membotgpt's Introduction

MemBot-GPT

MemBot is a Discord bot that uses OpenAI's GPT-2 model to generate responses based on prompts provided by users. The bot is designed to help users with their Membean vocabulary homework, reminding them to do three 15-minute sessions per week.

Getting Started

To use MemBot, you will need to have a Discord account and create a new Discord application with a bot user. You will also need to sign up for an OpenAI API key.

Prerequisites

  • Python 3.x
  • Discord account
  • OpenAI API key

Installing

  1. Clone the repository: git clone https://github.com/<your-username>/membot.git
  2. Install the required packages: pip install -r requirements.txt
  3. Rename .env.example to .env and replace DISCORD_TOKEN and OPENAI_API_KEY with your own values.

Usage

To run MemBot, run the following command in your terminal:

python main.py

You can then use the prompt command to create a new thread and generate a response based on a provided prompt. For example:

??prompt How many minutes do I need to train for membean this week?

MemBot will open a thread and you and others will be able to talk with MemBot with previous message knowledge.

You can also configure the bot to send reminder messages to a specified Discord channel at a certain time by changing the value of CHANNEL_ID in the .env file.

Contributing

If you would like to contribute to MemBot, please open a new pull request or issue.

License

This project is licensed under the MIT License - see the LICENSE file for details.

membotgpt's People

Contributors

connorswis avatar

Watchers

 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.