CodeSlinger69 / ClAsHbOt

Clash of Clans Farm Bot
88 stars 48 forks source link

Enhance Donate Troops to support dark spell donations #35

Closed CodeSlinger69 closed 8 years ago

CodeSlinger69 commented 8 years ago

New feature in the Dec 10, 2015 client is the ability to donate dark spells. Will need to think through if it makes sense to support this, and how to do it in a rock solid manner.

CodeSlinger69 commented 8 years ago

First cut at this in commit: https://github.com/CodeSlinger69/ClAsHbOt/commit/31a559f767f98d16042dc5faac8f42be9bf570e4

Look at the ini file to customize this. The bot will attempt to match strings in the request text with spell names, and if a match is made and those spells are in your inventory, they will be donated. Since most people don't request spells yet (in my experience), a default donation is available as well, currently set to Poison.

Finally, the bot will not service all Donate requests in the chat log that are visible (it won't scroll, however). Previously, it just took the first one it found and called it quits.

CodeSlinger69 commented 8 years ago

This works really well. I'll close this issue once I push an official release in a few days.

CodeSlinger69 commented 8 years ago

Released: https://github.com/CodeSlinger69/ClAsHbOt/releases/tag/20160201