Ikabot-Collective / ikabot

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

Shrine donation function and menu reformation #248

Closed susikaman closed 5 months ago

susikaman commented 5 months ago

New function for donating and sustaining worshipped Gods of the Shrine of Olympus. Users can donate to all selected Gods for a predetermined amount of times, once per 72 hours or both in the said order. Also updates favor in the task status every 12 hours while showing the last time of donation in the task status.

Has been tested for less than 12 hours. Anyone can feel free to test it out for longer periods, though I strongly believe it should work autonomously without issues since that's basically just about loops and timers.

This has huge potential to be included within the loginDaily function, since the Shrine only requires a donation every 72 hours and even has a 12 hour extra time before the grace begins to fall down.

I came up with a more convenient menu formation. This allows up to 99 options per menu item while maintaining logical number ordering compared to the printed menu.

Island Monitoring and Dump/View World functions are merged into each other. They seem logical enough, and conveniently reduce the menu size.

susikaman commented 5 months ago

Reformatted the code with the Black Reformatter which we have began using with the Ikabot project. Tested without any issues.

ikagod commented 5 months ago

Looks like there are merge conflicts with the load custom module PR in command_line.py. These will have to be resolved before we merge this PR. Maybe you could add the loading of custom modules somewhere in this branch of yours and then we can merge it and disregard the conflicts