This content originally appeared on DEV Community and was authored by GBTI
GBTI Labs Announces Self-Hosted NodeJS ChatGPT Discord Bot for Developers
GBTI Labs, an private devops group and membership community, is proud to announce the release of its self-hosted NodeJS ChatGPT Discord bot, designed to provide developers with a head start in integrating ChatGPT and other similar language models into Discord chatbots.
This bot integrates with both the OpenAI and Discord API through a config.json
file.
The bot requires users to have a payment account linked with OpenAI to record data usage. The data is affordable, with a power user costing about 10 cents a day and a regular user not even a cent. Throttle management is available through the OpenAI API to help users monitor their usage.
Once connected to Discord, the bot can be assigned to a special channel where users can interact with it. Users can type in /chat prompt
to create a private thread between themselves and ChatGPT or /chat prompt --public
to open a public, collaborative thread. Public threads accept collaborative input from multiple parties, while private threads only allow the initiating user to participate.
The bot remembers up to 50 interactions per thread, providing the AI with a well-contextualized view of the conversation. Users can manually adjust the number of replies to remember in the codebase to control expenses.
GBTI Labs encourages developers to ask questions about installation and improvement directly in the Discord.
GBTI Labs notes that while some powerful interpretations of a ChatGPT Discord bot exist, there is no official bot provided by OpenAI. However, users can still consider this bot model a starting point for other AI-powered language models.
The Self-hosted NodeJS ChatGPT Discord Bot is available to the GBTI developer community. For more information, visit https://gbti.io/.
This content originally appeared on DEV Community and was authored by GBTI

GBTI | Sciencx (2023-03-11T01:43:12+00:00) Selfhosted NodeJS ChatGPT Discord Bot. Retrieved from https://www.scien.cx/2023/03/11/selfhosted-nodejs-chatgpt-discord-bot/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.