Giter Site home page Giter Site logo

aaronburt / alexai Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 7 KB

This is a Node.js application that uses the Discord.js library and the OpenAI API to create a chatbot that can answer user queries. The bot uses the GPT-3.5-Turbo model to generate responses to user messages based on a given context.

License: Other

JavaScript 100.00%
discord gpt-3 nodejs

alexai's Introduction

Discord Chatbot with OpenAI

This is a Node.js application that uses the Discord.js library and the OpenAI API to create a chatbot that can answer user queries. The bot uses the GPT-3.5-Turbo model to generate responses to user messages based on a given context. Installation

Clone the repository
Run npm install to install the necessary dependencies
Create a .env file and add your Discord bot token and OpenAI API key in the following format:
DISCORD_TOKEN=<YOUR_DISCORD_BOT_TOKEN>
OPENAI_TOKEN=<YOUR_OPENAI_API_KEY>
Run npm run start to start the bot

Usage

To use this bot, simply add it to your Discord server and start messaging it. The bot listens for messages that start with the "!" character and responds to them with the appropriate response generated by the GPT-3.5-Turbo model.

The bot is designed to provide accurate and succinct responses to user queries based on the provided context. The bot can handle both direct messages and replies to previous messages, allowing for more complex conversational interactions.

Contributing

Contributions are welcome! If you find a bug or have a feature request, please open an issue or submit a pull request. License

This project is licensed under the MIT License - see the LICENSE file for details.

alexai's People

Contributors

aaronburt avatar

Watchers

Kostas Georgiou avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.