A Discord meme bot for servers that are too lazy to post memes every week. No server. No hosting. Fully automated.
This project automatically sends memes to a Discord channel using a secure webhook system.
Once set up, it runs completely in the background via GitHub Actions.
git clone https://github.com/ErkanSoftwareDeveloper/discord-meme-bot.git
cd discord-meme-bot
pip install -r requirements.txt
You will NOT put the webhook in the code.
Instead, you will add it to GitHub Secrets.
In Discord:
- Open your server
- Go to the channel where memes should be posted
- Click "Edit Channel"
- Go to "Integrations"
- Open "Webhooks"
- Click "New Webhook"
- Copy the Webhook URL
Keep this URL private. Treat it like a password.
Go to your repository:
Settings → Secrets and variables → Actions → New repository secret
Add:
Name: DISCORD_WEBHOOK_URL
Value: Your Discord webhook URL
IMPORTANT:
- Do NOT put this in code
- Do NOT commit
.env - Only use GitHub Secrets
- GitHub Actions runs the bot automatically
- Python script executes
- Meme is sent to Discord
- Process finishes
You can also run it manually from the GitHub Actions tab.
The bot runs on schedule using GitHub Actions.
You can:
- Run it daily or weekly
- Trigger it manually
- Let it run automatically in the cloud
No hosting required.
discord-meme-bot/ ├── main.py ├── requirements.txt ├── .github/workflows/ └── README.md
- Webhook URL = password
- Never share it
- Never commit
.env - If leaked, delete webhook and create a new one
- Always use GitHub Secrets
If something doesn’t work, check:
- Secret name is exactly: DISCORD_WEBHOOK_URL
- Workflow file exists in
.github/workflows/ - Dependencies installed
- Webhook URL is valid
- You did NOT hardcode secrets anywhere
- No server needed
- Free automation
- Reliable scheduling
- Works 24/7 in the cloud
To set up:
- Clone repo
- Install dependencies
- Add webhook to GitHub Secrets
- Run Actions
Done. It works automatically.
MIT License