AI assistant and chatbot for Discord that leverages the OpenAI Assistants API.
MIT License
binks.js is a chatbot that integrates Discord.js with the new OpenAI Assistants API. The bot operates within Discord channels, listening to messages and using the Assistants API to generate responses.
code interpreter
and file search
git clone https://github.com/jmhayes3/binks.js.git
cd binks.js
npm install
.env
file in the root of your project with the following variables:
DISCORD_TOKEN=your_discord_bot_token
OPENAI_API_KEY=your_openai_api_key
ASSISTANT_ID=your_openai_assistant_id
node app.js
/chat
and then your message to interact with the bot. The bot will automatically generate and send replies based on the OpenAI assistant's output.Feel free to fork the repository and submit pull requests.