Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Logs

A detailed explanation of every automatic log ClashPerk can post.

Logs are automatic messages ClashPerk posts to Discord whenever something happens in your clan or server — a member joins, a war attack lands, a raid weekend ends, and much more.

  • Enabled per clan. Turn on only the logs you want, for each clan separately.

  • Routed anywhere. Send each log to its own channel or thread.

  • Two families. Clan logs track in-game activity; server logs track ClashPerk actions on your Discord server.

Logs are not truly real-time. ClashPerk polls the official Clash of Clans API, so a short delay between the in-game event and the posted message is normal.

How does ClashPerk track game data?


Clan logs setup

Run the command, pick Enable, then choose the logs you want from the menu that appears.

1

Run the command

/setup clan-logs clan: #CLAN_TAG action: Enable channel: #channel

2

Select your logs

A menu appears — pick one or more logs to turn on for this clan. Run the command again with action Disable to switch any of them off later.

3

Fine-tune (optional)

Set a color for embed-style logs, or a ping_role for the Town Hall Upgrade log.

All command options
Option
Description

clan

The clan to set logs up for.

action

Enable or Disable the selected logs.

channel

Where to post (defaults to the current channel).

color

Hex color for embed logs (donation, clan games, last seen, etc.).

ping_role

Role to ping — Town Hall Upgrade log only.

Log shapes at a glance

Logs behave in one of three ways. Knowing which helps you pick the right channel for each.

Shape
Behaviour
Examples

Event post

A new message each time something happens.

Join/Leave, War Attack, Capital Gold Contribution

Self-updating embed

One message that edits itself as things change.

Last Seen, War Embed, Clan Games

Summary

A recap posted on a schedule.

Daily/Weekly/Monthly Donations, Legend Daily Summary


Clan Logs

Clan Achievements Log

Posts when the clan hits a milestone: clan level up, War League promotion/demotion, Capital League promotion/demotion, or Capital Hall level up.

Donation Log

Tracks troop donations. Choose how often it posts:

Posts whenever someone donates or receives troops.

Example

Donation Log — Clan Name 🔼 PlayerName donated 25 troops 🔽 PlayerName received 12 troops

Posts a once-a-day donation summary.

Posts a summary every Monday.

Posts when the league season ends — every 28 days, on a Monday at 05:00 UTC.

Clan Games Embed Log

Posts a Clan Games leaderboard that updates itself throughout the event — points, average, and tier progress.

Last Seen Embed Log

Posts one message and keeps it updated (roughly every 30 minutes) with each member's estimated activity.

  • Uses signals like donations, trophy changes, clan games, and capital activity.

Example

Last Seen — Clan Name 15m PlayerOne 2h PlayerTwo 1d PlayerThree Updated every ~30 min

See How does last seen work?.

Legend Attacks Daily Summary Log

Posts a daily Legend League recap — offense gained, defense lost, and final placement.

Numbers can be slightly off when an offense and a defense happen between two API polls.


Capital Logs

Clan Capital Weekly Summary Log

Posts after the raid weekend ends — total raid loot and capital gold contribution, with a graphic similar to the in-game summary.

Capital Gold Contribution Log

Posts each time a member contributes capital gold.

Capital Gold Raid Log

Posts each time a member completes a capital raid attack.


War Logs

War Attack Log

Posts a message for every attack made during a regular Clan War.

Example

War Attack — Clan Name vs Opponent ⭐⭐⭐ PlayerName (TH15) → #4 · 100%

CWL Attack Log

Posts a message for every attack made during CWL.

War Embed Log

Posts one embed per war and updates it as the war runs — recent attacks, war state, war size, key stats, and a Town Hall breakdown.

War Missed Attacks Log

Posts a list of players who missed attacks, split by 1 missed vs 2 missed.

CWL Embed Log

Posts one embed per CWL round and keeps it updated.

CWL Missed Attacks Log

Posts a list of players who missed their CWL attacks.

CWL Lineup Change Log

Logs CWL lineup changes as they happen — who was added and who was removed.

CWL Monthly Summary Log

Posts a graphic summarizing the CWL season placements.


Player Logs

Member Join/Leave Log

Tracks members joining and leaving your clan.

  • On join: Town Hall, trophies, hero levels, war stars, rushed %, join source, member count, time.

  • On leave: Town Hall, trophies, donations at leave, and join source (if known).

Example

🟢 Joined · PlayerName (#TAG) TH15 · 5,200 🏆 · heroes 90/90/65/45 · 1,250 war stars · 6% rushed

🔴 Left · PlayerName (#TAG) TH14 · 4,900 🏆 · 310 donations

Role Change Log

Tracks in-game promotions and demotions — who changed, the old and new role, and when.

Name Change Log

Posts when a member changes their in-game name.

Town Hall Upgrade Log

Posts when a member upgrades their Town Hall.

  • Also shows the % of troop upgrades remaining.

  • Optional: ping a role with ping_role when it fires.

War Preference Log

Posts when a member changes their war preference — opt-in vs opt-out.

Ranked Battle League Change Log

Posts when a member's Home Village ranked league changes — the old and new league.


Server Logs

Server logs track ClashPerk's own actions on your Discord server rather than in-game events. Set them up with:

/setup server-logs log_type: Flag Alert Log channel: #channel

Log
Posts when

Flag Alert Log

A flagged player (ban/strike) joins one of your clans. See Flags (Ban/Strike).

Roster Change Log

A member is added to or removed from a roster.

Maintenance Break Log

The Clash of Clans API enters or leaves a maintenance break.

Welcome Log

A new member is welcomed after linking their account.

Run the command with disable to turn a server log off.

Last updated

Was this helpful?