Giter VIP home page Giter VIP logo

gptbot's Introduction

Discord chatbot with GPT-3 Integration

The README was partially written by the bot itself.

This program is a Discord bot that uses the chatgpt library to integrate OpenAI GPT-3 capabilities into a Discord chat. With this bot, users can chat with the bot and receive responses generated by GPT-3 in real-time.

imageedit_1_9483451562

ChatGPT is a large language model trained by OpenAI and is intended for entertainment purposes only. It is not a substitute for professional advice or help, and its responses are not necessarily accurate or reliable. Use at your own risk.

Features

  • Chat with ChatGPT directly on your Discord server
  • All your friends will see the conversation and be able to participate
  • Natural, engaging conversations with the state-of-the-art large language model trained by OpenAI
  • Easy to use โ€“ simply mention the bot in a channel and start chatting

Installation

  1. Create new discord application and invite it to your Discord server.
  2. Install chatbot with NPM:
# Clone repository
git clone https://github.com/leinstay/gptbot.git

# CD into directory
cd gptbot

# Install dependencies
npm install
  1. Than adjust config.json providing Discord Bot Token, OpenAI Session, Application ID and list of channel and user IDs if you would like to restrict access to application.
{
  "channelsWhitelist": [],
  "usersWhitelist": [
    "0000000000000000000",
    "0000000000000000000",
    "0000000000000000000"
  ],
  "OAISession": "YOUR-OPENAI-SESSION-HASH",
  "discordToken": "YOUR-DISCORD-TOKEN",
  "botID": "BOT-ID",
  "processingMessage": "Waiting for a response from OpenAI",
  "waitingMessage": "I am currently generating a response for another user, please wait",
  "accessMessage": "You do not have permission to communicate with OpenAI, contact the server administrator"
}

Usage

I strongly recommend to use forever or pm2:

pm2 start index.js --name Bot --log bot.log

ะžr you can run it directly without process managers:

node index.js

That's all there is to it! Try it out now and have fun chatting with ChatGPT on your Discord server.

gptbot's People

Contributors

leinstay avatar ta1al 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.