This is a ChatGPT discord chatbot with bot role configuration.
-
Config the bots (details in step 4)
-
Talk to them or type commands
Act as code assistant:
Act as a linux terminal:
Act as an etymologist:
/intro
Show the which basic functions of the bot of current channel/reset
Clean the chat history of current channel (only available in chat model)/model-setting
Show the model setting of the bot of current channel/channel-setting
Show the channel setting of the bot of current channel/source-code
Show the the URL of this repo
- OpenAI API key
- Discord API key
- Discord server id
- Discord bot client id
npm i
npm run config
Step 4. Modify the files below to config the role, personality, and function of bots in different channels.
src/config/bot.yml
src/config/config.json
- For the model name, please refer to OpenAI doc.
- Only
gpt-3.5-turbo
andgpt-3.5-turbo-0301
support chat completion. - Other models can be used in this chatbot, but it is not recommended.
- Set
chatHistoryMaxLength
smaller than 2000 due to openAI API limitation. - Set
bot
andchatHistoryMaxLength
tonull
if it is NOT chat model. - For the detail setting, please refer to OpenAI doc.
npm start
npm run start-linux
npm run store
npm run store-linux
-
Support stream request.
-
Create DB to store message.
-
Voice chat. Includes text to voice and voice to text.