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.
- Fetches random memes from the Meme API.
- Shares memes in a Discord channel.
- Python 3.6 or higher
pip
(Python package installer)
-
Clone the repository:
git clone https://github.com/subba2048/DiscordCodeBot.git cd DiscordCodeBot
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- On Windows:
.\venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- On Windows:
-
Install the required packages:
pip install -r requirements.txt
-
Create a .env file in the root directory and add your Discord bot token:
DISCORD_TOKEN=your_discord_token_here
-
Run the bot:
python bot.py
Once the bot is running, it will listen for commands in your Discord server and respond with memes.
Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License.