A customizable AI Discord bot with authentication.
npm install
npm run dev
CLIENT_ID=
CLIENT_PUBLIC_KEY=
CLIENT_TOKEN=
OPENAI_API_KEY=
OPENAI_ORGANIZATION_ID=
MONGO_URI=
PORT=
- Your Discord client credentials
- Your OpenAI API credentials
- Your MongoDB connection string
- PORT
- Set this to the port you used to set up your redirect URI (view here for more info).
- Configure how your AI responds by default.
{
"model": "gpt-3.5-turbo",
"systemRoleContent": "You are a friendly and witty chat bot. Your only job is to either answer a question in a funny way, or be intrigued by whatever the user says.",
"temperature": "0.86",
"presence_penalty": "0"
}
model
— See here.systemRoleContent
— Tell the AI how to respond.temperature
— See here.presence_penalty
— See here.
- The bot developer ID's and test guild ID.
config.example.json
{
"testGuildId": "",
"developersId": [""]
}
/ask [question]
/settings view | system | reset | help
-
/settings system
role:
Respond in a funny waytemperature:
0.86
-
The settings such as temperature and system role content for a specific guild.