GithubHelp home page GithubHelp logo

chatgptdiscordbot's Introduction

Chat GPT Discord Bot

What is this?

This is a Discord bot that uses Chat GPT's technology to generate responses to messages in a Discord server(using AI).

How do I use it?

  1. Clone this repository
  2. Create a Discord bot and invite it to your server
  3. Grab the bot's token and replace it in your own '.env' file (template provided)
  4. Grab the Chat GPT API key and replace it in your own '.env' file (template provided)
  5. Run 'pip install -r "path"/requirements.txt' to install dependencies
  6. Run 'python3 "path"/run.py' to start the bot
  7. Create a channel with the following names: {'gpt-questions', 'chatgpt', 'gpt-bot'}
  8. Type '/ai message' or '/bot message' or '/chatgpt message' in the current channel and wait for the response
  9. Enjoy!

Visual representation of the system

System sequence diagram:

: System sequence diagram

Sequence diagram of the bot:

: Sequence diagram of the bot

Bot setup:

: Bot setup

Dependencies

  • Python 3.10.0
  • discord.py 2.1.0
  • python-dotenv 0.21.0
  • requests 2.25.1

chatgptdiscordbot's People

Contributors

pintohen 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.