Skip to content

subba2048/DiscordCodeBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages