Skip to content
CodeSlinger69 edited this page Jun 22, 2015 · 2 revisions

As of the 20150509 release, the bot will Auto Donate troops to your clan mates. It parses their request and attempts to find a troop in your inventory that matches their request. Settings for auto-donate are in the .ini file and are documented with comments.

The following is the logic for matching a clan mate's request. The request text is parsed to try to identify the type of troop requested, and looks for a match in this order:

  1. Is a negative string present? No donation, as trying to decipher negative logic get way to complicated very quickly. Example: "anything but golem"
  2. Is a specific troop type requested? Donate that type.
  3. Is the "dark" string present? Donate from the "Use For Dark" list, in that order of preference.
  4. Is the "air" string present? Donate from the "Use For Air" list, in that order of preference.
  5. Is the "ground" string present? Donate from the "Use For Ground" list, in that order of preference.
  6. Is the "farm" string present? Donate from the "Use For Farm" list, in that order of preference.
  7. Is the "any" string present? Donate from the "Use For Any" list, in that order of preference.

If rules 2, 3, 4, or 5 are hit, rules 6 and 7 are not parsed. The rationale is that a request may say something like "any dark troops, please". Rule #3 gets hit, so the bot looks to see if you have a dark troop available. If you don't, then we don't want to trigger rule #7 and donate just any random old troop.

Clone this wiki locally