e4c6 / DiscordGPT-3

OpenAI api integration for a discord bot with completion and q&a functionality.
MIT License
58 stars 21 forks source link

Readme on how to integrate #2

Open ShivanshuPurohit opened 3 years ago

ShivanshuPurohit commented 3 years ago

Can you explain how to get the bot running, such as how to install the API key, restrict the bot to certain users only, etc? Not very experienced with discord moderation/bot management.

I can't use any commands in the section [CHANNEL ONLY+OWNER ONLY] and even the completions aren't showing as you can see: Screenshot (16)_LI

ShivanshuPurohit commented 3 years ago

It isn't giving any completions and the only commands that work are [CHANNEL ONLY]

e4c6 commented 3 years ago

Hi, there was a connectivity issue with Discord API and it's resolved now. Can you please try again? I will soon add a readme for setup.

ShivanshuPurohit commented 3 years ago

Still not producing an output. It just checks my command with a white tick and doesn't actually produce an output. Also, none of the [CHANNEL+OWNER ONLY] commands work so I can't see anything with !config

e4c6 commented 3 years ago

If you've added the bot to your server through top.gg/direct link:

  1. Can you please kick the bot and add it back in?

If this is a self-hosted setup:

@ShivanshuPurohit I'm assuming you have:

1) Created a .env file and populated it with:

Example here.

  1. If so, can you please verify that you can find your own server in "gp3_servers" collection within the database?
  2. Can you please verify that you have setup a valid OpenAI API token by DM'ing the bot with command !setup?
  3. Can you please verify that once you have setup the API token through !setup, the collection is updated?

I'm thinking your requests are receiving a unhandled response status code. Current implementation only checks for 400,429 and 500. You can add a print(status_code) to handle_status() function and check from terminal what you are receiving.

What does the application print out when you run the commands that doesn't produce any output?

ShivanshuPurohit commented 3 years ago

for now I have just added the bot. I will try to host my own to add different features. I did kick the bot and add it back but I still cant do !config (shows no response) but it generating outputs now. As you can see on the image I posted, doing !config produces no output at all

e4c6 commented 3 years ago

The config issue has been resolved. however i will close this issue once we have a proper readme with instructions.

Marcus-Arcadius commented 3 years ago

This is the most confusing setup. I have no experience making bots for discord, so I am finding it difficult to make it work.

Marcus-Arcadius commented 3 years ago

Are you ever going to update this with instructions, especially for using the Docker container? @e4c6

youthyio commented 2 years ago

@e4c6 Why hasn't there been any update on this?

e4c6 commented 2 years ago

@Marcus-Arcadius @youthyio I have been very busy lately, however now i have some time on my hands and i will be documenting the project better.