Coder Social home page Coder Social logo

wjx / discord-chatgpt2 Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 15 KB

A customizable Discord bot with a ChatGPT (or GPT4, bring your own API key) backend. You can configure the bot’s context and prompt in the template settings.

License: GNU General Public License v3.0

Rust 100.00%

discord-chatgpt2's Introduction

A Discord ChatGPT bot

flows.network Discord flows.network Twitter Create a flow

Deploy this function on flows.network, and you will get a Discord bot that uses ChatGPT to respond to every question in your Discord DM.

Prerequisites

  • You will need to bring your own OpenAI API key. If you do not already have one, sign up here.
  • You also need a bot token to access the Discord API. Please refer to How to create a Discord chat bot to save the Discord API Token and invite the bot to your server. You can see the bot is offline now. But don't worry! After you finish all the steps, the bot will be online.

Deploy your Telegram ChatGPT bot in 3 steps

  1. Create a bot from a template
  2. Add your ChatGPT API key
  3. Add the Discord bot token

1 Create a bot from a template

Just click here

image

Here you can see three variables. You can customize the system_prompt variable to prompt ChatGPT.

Click on the Create and Build button.

2 Add the Discord token

You will now set up Discord integration. Enter your Discord token here. Please refer to How to create a Discord chat bot.

image

Click on Continue.

3 Add your OpenAI API key

You will now set up OpenAI integration. Click on Connect, and enter your key.

image

Close the tab and go back to the flow.network page once you are done. Click on Deploy button.

Give it a try.

When the status of the flow is ready and running, you can go back to your Discord server and check out the status of the bot you just invited.

Now you can see the bot on the right online contact list. DM the bot or @the bot in a channel, the bot will answer your questions.

Others

If you want to build locally, make sure you have installed Rust and added wasm32-wasi traget.

cargo build --target wasm32-wasi --release

discord-chatgpt2's People

Contributors

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