Skip to content

Latest commit

 

History

History
66 lines (46 loc) · 1.37 KB

README.md

File metadata and controls

66 lines (46 loc) · 1.37 KB

DiscordCodeBot

DiscordCodeBot is a simple Discord bot that fetches and shares memes from the internet. It uses the discord.py library to interact with the Discord API and the requests library to fetch memes from the Meme API.

Features

  • Fetches random memes from the Meme API.
  • Shares memes in a Discord channel.

Setup

Prerequisites

  • Python 3.6 or higher
  • pip (Python package installer)

Installation

  1. Clone the repository:

    git clone https://github.com/subba2048/DiscordCodeBot.git
    cd DiscordCodeBot
  2. Create a virtual environment:

    python -m venv venv
  3. Activate the virtual environment:

    • On Windows:
      .\venv\Scripts\activate
    • On macOS/Linux:
      source venv/bin/activate
  4. Install the required packages:

    pip install -r requirements.txt
  5. Create a .env file in the root directory and add your Discord bot token:

    DISCORD_TOKEN=your_discord_token_here
  6. Run the bot:

    python bot.py

Usage

Once the bot is running, it will listen for commands in your Discord server and respond with memes.

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

This project is licensed under the MIT License.