AI GENERATED README _____________
This Discord bot is designed to enhance your server experience by offering a variety of commands, including some that leverage the power of OpenAI's GPT-4 and Images API. The bot offers a mix of utility, fun, and gaming-related commands that cater to different user preferences.
-
GPT-4 Chatbot: Utilize the "/gpt4" command to ask questions or get information from the GPT-4 API. The bot sends your query to the GPT-4 API and returns a response based on the AI model.
-
OpenAI Images: Generate images based on a text prompt using the "/wskbosch" command. The bot sends the provided prompt to the OpenAI Images API and returns an image URL based on the AI model's output.
-
Dota 2 Stack: The "/dota" command creates a message that asks users to react in order to join a Dota 2 stack. This helps in organizing and managing stacks for Dota 2 gaming sessions within your server.
-
Opt-in and Opt-out: The "/optin" and "/optout" commands allow users to join or leave a specific role, which is pinged when the "/dota" command is used. Users can opt-in to receive notifications for Dota 2 stack invitations or opt-out if they do not wish to be notified.
- Clone the repository or download the source code.
- Run
npm installto install the required dependencies. - Create a
.envfile in the root directory and add your Discord bot token and OpenAI API key:
DISCORD_BOT_TOKEN=your_discord_bot_token
OPENAI_API_KEY=your_openai_api_key
- Run
node index.jsto start the bot. - Invite the bot to your server and start using the commands!
To use the available commands, simply type the command followed by the required input. For example:
- For GPT-4 chatbot:
/gpt4 query:"your query" - For OpenAI Images:
/wskbosch prompt:"your image prompt" - For Dota 2 Stack:
/dota number: "the number of people you want to play" timeout:"The time you're willing to wait to play" - For Opt-in:
/optin - For Opt-out:
/optout
Enjoy using the bot and exploring the various commands it offers!