This is a Discord bot built using discord.js that generates sarcastic responses using Groq's AI models. The bot also supports generating QR codes for user-provided messages.
- Responds to messages with sarcastic AI-generated responses.
- Generates QR codes for user-provided messages.
-
Clone the repository:
git clone https://github.com/manandev18/Discord-Bot.git cd discord-bot-groq -
Install the required dependencies:
npm install
-
Create a
.envfile in the root directory and add your Groq API key and Discord bot token:GROQ_API_KEY=your_groq_api_key TOKEN=your_discord_bot_token
-
Start the bot:
node index.js
-
Interact with the bot on your Discord server:
- Generate QR Code: Use the
/createcommand followed by your message. - Chat with the bot: Send a message to any channel the bot is in, and it will reply with a sarcastic AI-generated response.
- Generate QR Code: Use the
/create message:Hello World!- Generates a QR code for the message "Hello World!".Hi bot, how are you?- The bot replies with a sarcastic response.
- discord.js - A powerful JavaScript library for interacting with the Discord API.
- qrcode - A QR code generator for Node.js.
- groq-sdk - Groq's AI SDK for Node.js.
- dotenv - A module that loads environment variables from a
.envfile.
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Commit your changes.
- Push to your branch.
- Create a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.