Modern Discord bot for anime pictures with dynamic tag loading
Based on CatgirlDownloader with improvements and new features
Smart Search - Autocomplete with popular tag prioritization
All API Tags - Dynamic loading of all available tags from Waifu.im
Tag Search - Find exactly what you're looking for
Furry Support - Get furry images from e621/e926
NSFW Support - Safe access to NSFW content
User App - Works everywhere: servers, DMs, group chats
Rate Limiting - Stable operation without API errors
Beautiful UI - Modern embed messages
Auto-update - Tags update automatically
User App - works everywhere without admin permissions:
https://discord.com/api/oauth2/authorize?client_id=YOUR_BOT_ID&scope=applications.commands
Server Bot - classic method with permissions:
https://discord.com/api/oauth2/authorize?client_id=YOUR_BOT_ID&permissions=2147485696&scope=bot%20applications.commands
| Command | Description | Parameters |
|---|---|---|
/waifu |
Random anime picture | nsfw, tag, count |
/nsfw |
NSFW picture | tag, count |
/furry |
Random furry picture | nsfw, tags, count |
/tags |
Show available tags | nsfw, search |
/help |
Commands help | - |
| Command | Description | Access |
|---|---|---|
/reload_tags |
Reload tags from API | Administrators |
/sync |
Sync commands | Administrators |
- All tags automatically - Bot loads ALL available tags from API on startup
- Furry support - Access to e621.net (NSFW) and e926.net (SFW) furry content
- Smart autocomplete - Prioritization of popular tags and exact matches
- Works everywhere - Servers, DMs, group chats
- Stable operation - Automatic API rate limiting handling
- Modern approach - User App instead of outdated Server Bot
Discord servers (with NSFW channel checks)
Direct messages (all commands available)
Group chats (all commands available)
Mobile devices (full support)
- Python 3.8+
- Discord.py 2.3+
- aiohttp
- python-dotenv
- Clone repository
git clone https://github.com/Sqrilizz/CatGirlDiscord.git
cd CatGirlDiscord- Install dependencies
pip install -r requirements.txt- Configure tokens
cp .env.example .env
# Edit .env file- Run bot
python bot.py
# or alternatively
python scripts/run.py- Go to Discord Developer Portal
- Click "New Application" and name your bot
- Go to "Bot" section in left menu
- Click "Add Bot"
- Copy bot token (needed for
.env)
In "OAuth2" → "URL Generator":
- Select scope:
botandapplications.commands - Select Bot Permissions:
- Send Messages
- Use Slash Commands
- Embed Links
- Attach Files
- Read Message History
pip install -r requirements.txt- Copy
.env.exampleto.env:
cp .env.example .env- Edit
.envfile:
DISCORD_TOKEN=your_discord_bot_token
WAIFU_API_TOKEN=j6UBBh8ljk3HTVdz7kPLloZNbqhXOPmpGurtNtMiPs0python bot.pyImportant! Bot updated for new Waifu.im API v5. Main changes:
- New endpoint:
/imagesinstead of/search - New response structure with pagination
- Updated tag system
- Improved error handling
- API token required (mandatory for v5)
CatGirlDiscord/
├── bot.py # Main bot file
├── waifu_api.py # Waifu.im API client
├── furry_api.py # e621/e926 API client
├── config.py # Configuration
├── requirements.txt # Dependencies
├── README.md # Documentation
├── .env.example # Environment variables example
├── LICENSE # MIT license
├── Pics/ # Images for README
├── docs/ # Documentation
│ └── CONTRIBUTING.md # Contributor guide
├── tests/ # Tests
│ └── test_api.py # API tests
└── scripts/ # Scripts
└── run.py # Alternative launcher
| Variable | Description | Required |
|---|---|---|
DISCORD_TOKEN |
Discord bot token | Yes |
WAIFU_API_TOKEN |
Waifu.im API v5 token | Yes (for v5) |
Getting API Token:
- Register at Waifu.im
- Go to profile settings
- Create new API token
- Add token to
.envfile
Bot automatically loads ALL available tags from Waifu.im API:
- Auto-update on bot startup
- Categorization into SFW, NSFW and versatile
- Search by tag name
- Smart suggestions for incorrect input
- SFW tags: ~9 categories
- NSFW tags: ~7 categories
- Total: 16+ unique tags
- Update: Automatic on startup
SFW:
waifu- Waifumaid- Maiduniform- Uniformselfies- Selfiesoppai- Oppai
NSFW:
hentai- Hentaiecchi- Ecchiero- Eromilf- MILFass- Ass
- NSFW filtering - Automatic channel type check
- Age restrictions - Discord rules compliance
- Safe sources - Only verified Waifu.im API
- Doesn't read messages - Only slash commands
- Doesn't collect data - No user logging
- Minimal permissions - Minimum access rights
- Check Issues
- Create new Issue with detailed description
- Attach logs and screenshots
- Discuss in Discussions
- Create Pull Request
- Follow Contributing Guide
Star it on GitHub! It motivates further development.
This project is distributed under MIT license. See LICENSE for details.
Made with love for anime community
Special thanks to NyarchLinux for original CatgirlDownloader
