Skip to content

manandev18/Discord-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Bot for QRCODE generation with Groq AI Integration

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.

Features

  • Responds to messages with sarcastic AI-generated responses.
  • Generates QR codes for user-provided messages.

Installation

  1. Clone the repository:

    git clone https://github.com/manandev18/Discord-Bot.git
    cd discord-bot-groq
  2. Install the required dependencies:

    npm install
  3. Create a .env file 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

Usage

  1. Start the bot:

    node index.js
  2. Interact with the bot on your Discord server:

    • Generate QR Code: Use the /create command 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.

Example Commands

  • /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.

Dependencies

  • 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 .env file.

Contributing

  1. Fork the repository.
  2. Create a new branch for your feature or bugfix.
  3. Commit your changes.
  4. Push to your branch.
  5. Create a pull request.

License

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors