dGPT is a bot that uses Discord as a substitute interface over ChatGPT, primarily for the purposes of using API pricing over a monthly subscription. Right now this is an open-source project for self-hosting, however I may be creating an independently-hosted version of the bot compatible with multiple guilds, which would be accessible for a fee. This possible version of the bot would not be open-source.
Depends on the discord, typing, and os modules.
- /setup
- Use only once once a "For me and my friends" server is created, without altering the server. This will restructure the server into the
- /new [prompt]
- Starts a new public thread with specified prompt. When left empty, the bot will await a prompt. This is helpful for long or multi-line prompts
- /clear
- Deletes all active and archived threads.
- /log
- Saves a log of the thread as either a text file or markdown file
- /sync
- Usable only by those in a list of usernames set in the config.json file
YES, if you want to:
- Keep input and output fewer than 250,000 words per month (otherwise purchase a subscription, it's more cost-effective)
- Use ChatGPT within Discord
- Host the bot for just yourself and/or friends
- Customize your experience of the bot
NO, if you want to:
- Host for multiple guilds on one bot instance
- Host on servers with people you don't trust
- Host on large servers
- Have a dedicated app or web interface for ChatGPT
- Send messages that exceed Discord's character limit without Nitro
- Download all files
- Rename
config_base.jsontoconfig.jsonand open the file - Set the
openai_tokenvariable to your OpenAI API key and thediscord_tokenvariable to your Discord bot's token - Create a new server
- Invite the bot and use /setup
- Settings page to change custom instructions, GPT model
- Read and respond to text files
- Messages split to meet character limit between markdown (**, ```, etc.) symbols messes up the intended markdown