Giter VIP home page Giter VIP logo

chat_g_bot's Introduction

ChatGPT Discord Chatbot

This project is a starter kit for using OpenAI on Discord. It's running the latest version of the API for all and only requires Discord Bot setup and API key setup.

Introduction

To start using the project, you will need the following. Node version 16 or above, a Discord acocunt and an OpenAI account.

Current Configuration

The last tested version of this was performed on the following:

  • Node Version 18.1.0
  • NPM Version 8.8.0

Starting Guide

Prepare the following items

  • OpenAI account + API Key
  • Dicord Account and Channel
  • NodeJS

Installation

  • Create a Discord Channel
  • Head to Developer Applications
  • Create a Discord Application
  • Create a Discord Bot
  • Update the .env file with the Bot Token
  • Create OpenAI account
  • Generate an API token
  • Update the .env API key and Org Id
  • Perform an NPM install
  • Run node ./index.js

The application is set to listen for tags from ChatGPT and the word ChatGPT in sentences and reply to users.

It is also set to reply to other prompts such as the word Adrian.

It is configured to not respond to itself or other bots.

The current prompt is engineered to prepare OpenAI AI as a chatbot. You can update this prompt in many ways, such a reciept bot, or a informational bot, or much more.

Bugs and Fixes

If there are any bugs or updates, I will update the Gumroad Files to include them.

chat_g_bot's People

Contributors

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