Code Monkey home page Code Monkey logo

dischat's Introduction

dischat

An easy bot that supports Openai API to query gpt3.5 on your own discord server. If you are finding a way to set up a slash command, I implement it in another way you may want to know. As a discord user, integrating everything together makes the experience better for me. Here we have gpt and dall so far; others are still trimming and sorting out.(They are too messed up to be shown to everyone) I plan to release an app_commands.Group version with more integration after a long long long future. TBA, Stay tuned.

Startup

Build Environment

git clone https://github.com/kytimmylai/dischat.git
conda create --name dischat python=3.9
conda activate dischat
cd disbot
pip install -r requirements.txt

Create Bot

There are tutorials elsewhere guiding you on how to create and invite a bot. Or you can wait for my update.

Invite your bot with a URL that is generated in OAuth2->General->Scope: bot, Bot permissions: Admin Type the URL in where the server is, and then it will show up

Set up Key

Remember to Discord dev page and Openai set your own key and paste in key.csv

Activate Bot

python disbot.py

Now your bot is online! The slash command may not show up right away, be patient. But you can type and bot will reply a gpt3.5 output.

Type Obliviate to reset the chat history if you want to change the subject. The word has the magic power to erase memory from gpt.

Demo

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.