Hey guys, I've been working on a discord bot for interacting with ChatGPT. Use /chat to create a thread to talk to Jerry in. Then send a message in the thread to start a conversation. There are few cool features like username injection so Jerry can keep track of different users, and Jerry will wait for you to stop typing/sending messages before he replies. Check it out at https://github.com/msnyder5/GPTJerry, lmk what you guys think and what features I could add. There is a prebuilt inital_prompt, but you can change it for different results (no prompt = vanilla ChatGPT).
#Discord ChatGPT Chatbot - GPTJerry
25 messages · Page 1 of 1 (latest)
/chat
you can't do it here. you have to run it on your own.
o
@signal wyvern also this one
Discord ChatGPT Chatbot - GPTJerry
just tried to run it but receiving an error
"nextcord.errors.ApplicationInvokeError: Command raised an exception: Forbidden: 403 Forbidden (error code: 50001): Missing Access"
make sure you have on typing intents in discord dev portal for your bot
I checked that and all the intents are on
I get the response "GPTJerry
Send messages in this thread to interact with Jerry. The thread will expire after 60 minutes of inactivity" but the bot doesn't respond to any messages
can you dm me the full error message
sure!
I assume this is as affected by "Network Error" as the regular ChatGPT site?
The error was that the bot did not have correct permissions to create a thread
/chat
you can't do it here. you have to run it on your own.
What is the max response time or length of this? Is it the same as the standard web version of chatgpt?
Yeah, but it's prompted to try to talk in shorter messages to seem more human. you can change the prompt to whatever you want though
For ChatGPT I don't know. But I know that Discord has a 3s timeout for slash commands... So if ChatGPT takes more than 3s to answer you have to defer the response.
You use slash command once to create the thread, then you just message normally inside the thread
but ChatGPT will be slower than 3s a message anyways
nextcord.errors.ApplicationInvokeError: Command raised an exception: RuntimeError: asyncio.run() cannot be called from a running event loop
getting the following error
the ChatGPT library I'm using made a breaking change. I'll work on fixing it soon