Giter VIP home page Giter VIP logo

jarylc / cf-workers-chatgpt-discord-bot Goto Github PK

View Code? Open in Web Editor NEW
12.0 3.0 2.0 114 KB

Synced from GitLab - Deploy your own Serverless Discord bot integration to quickly interface with OpenAI's ChatGPT Completion API (gpt-3.5-turbo / gpt-4)

Home Page: https://gitlab.com/jarylc/cf-workers-chatgpt-discord-bot

License: MIT License

TypeScript 79.68% JavaScript 20.32%
chat bot chatbot chatgpt discord discord-bot discord-api

cf-workers-chatgpt-discord-bot's Issues

KV Namespace needs to be created

Hey @jarylc, I gave this a try and it looks good, thank you!
I might be creating a pull request regarding this issue, and a few other things on my mind. For now, here's the issue.
The kv_namespaces in wrangler.toml needs to be set up.
https://github.com/jarylc/cf-workers-chatgpt-discord-bot/blob/66d1205c25bdeb9c1b8bda5ea60cc66292010d9a/wrangler.toml#LL7C62-L7C62
I ran npx wrangler kv:namespace create CHATGPT_DISCORD_BOT_KV in order to create a new namespace and pasted that ID in my wrangler.toml. This should be a step in 'Getting Started'.

Give the ability to set a system message

Sending a system message is an easy way of customizing the chatbot. With the help of it, a developer can customize the behavior of the endpoint. Example: You're a class mentor chatbot developed by @jarylc. Only respond to math questions., etc.

DISCORD_USERID_WHITELIST must be empty to register INTERACTIONS ENDPOINT URL

When adding the INTERACTIONS ENDPOINT URL for the discord application
image
I always got the notofication the URL could not be verified and the changes not be saved. When I checked the code I saw, that entries in DISCORD_USERID_WHITELIST prevent Discord's check requests from going through.

It would be good to at least mention in the readme, that the whitelist must be empty and can be set after registering the URL.

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.