BaseFinder is a Discord bot built with nextcord that helps Clash of Clans players find base layout links from YouTube videos β including War, CWL, and Legend bases for Town Hall levels 15β17.
- π― Slash command:
/find_basesto search by Town Hall and base type - π Filters recent uploads from hand-picked YouTube channels
- π Extracts official Clash of Clans layout links from video descriptions
- π§ Smart caching and API key rotation to avoid YouTube quota limits
- π© Sends results privately via DM to reduce chat spam
git clone https://github.com/leaskeg/BaseFinder.git
cd BaseFinder
pip install -r requirements.txtDISCORD_TOKEN=your_discord_bot_token
API_KEYS=your_youtube_api_key1,your_youtube_api_key2You can get YouTube Data API v3 keys from the Google Cloud Console.
Edit or create a channels.txt file, with one YouTube channel ID per line:
UCk7iPlcw-X7_3IMLqN2Vj2w
UCa9iS8-4Yxay_Nd0gBz8i9A
...
python basefinder.py/find_bases base_level: TH16 base_type: War
- Returns up to 5 layout links from recent videos matching your criteria.
- Sends them to your DMs to keep the chat clean.
- Python 3.8+
- nextcord
- python-dotenv
- google-api-python-client
Install everything via:
pip install -r requirements.txtGot a new feature idea or found a bug? Feel free to fork the repo and open a PR!
MIT License
Made with β€οΈ for the Clash of Clans community by leaskeg