Ikabot-Collective / ikabot

A Python-based bot designed for automating tasks in the game Ikariam
https://discord.com/invite/3hyxPRj
MIT License
102 stars 67 forks source link

fix speed regular expression on attackBarbarians #283

Open Evasionn opened 1 week ago

Evasionn commented 1 week ago

Description:

This pull request addresses an issue in the attackBarbarians function where the regular expression was failing to match the expected content. The problem was due to a mismatch in the regex pattern, which has now been corrected to properly extract the desired value from the HTML response.

Changes:

Motivation:

The previous regular expression was not correctly capturing the intended data from the response, leading to potential failures in the functionality. This fix ensures the extraction of the speed value works as expected.

Testing:

I have tested the changes by running the code in the project’s environment, and the regex now correctly matches the speed value without errors.

Additional Notes:

releated issue: #219