A Discord bot for Clash of Clans players, providing player stats, clan details, and more.
Supercell is a Discord bot designed to enhance the experience of Clash of Clans players. It allows users to retrieve player statistics, clan information, and other game-related data directly within Discord. The bot also supports multiple languages, making it accessible to a global audience.
- Retrieve detailed player stats (e.g., trophies, town hall level, clan role).
- Generate player cards with visual stats.
- Support for multiple languages (e.g., English, French).
- Set a default language for each user.
- Fetch clan details and contributions.
- Easy-to-use slash commands.
- Clone this repository:
git clone https://github.com/sachawoody/Supercell.git
- Navigate to the project directory:
cd Supercell - Install the dependencies:
npm install
- Create a
.envfile in the root directory and configure the following variables:DISCORD_TOKEN=your-discord-bot-token COC_API_TOKEN=your-clash-of-clans-api-token - Start the bot:
npm start
Once the bot is running, invite it to your Discord server and use the available slash commands to interact with it. For example:
/player tag:#PLAYER_TAG- Retrieve player stats./setlang language:en- Set your default language.
| Command | Description |
|---|---|
/player |
Fetch and display player stats. |
/setlang |
Set your preferred language. |
/clan |
Retrieve information about a specific clan. |
Contributions are welcome! To contribute:
- Fork the repository.
- Create a branch for your changes:
git checkout -b feature/feature-name
- Commit your changes and push your branch:
git commit -m "Add feature description" git push origin feature/feature-name - Open a Pull Request.
This project is licensed under the MIT License. For more details, please refer to the LICENSE file.