RobertRautenbach / Open-Source-Battle-Bot

A project to make farming in Dokkan Battle available to anyone.
GNU General Public License v3.0
84 stars 67 forks source link

Completeevents gives a name error when trying to execute in daily login/bulk login #127

Closed NilBarua closed 4 years ago

NilBarua commented 4 years ago

When I try to execute the bulk login command 'completeevents' then it logins to the account shows the stage and shows this error. My Global database is up to date. Completing Z Battles does work though.

Please let me know how to solve this.

ERROR CODE _Begin stage: STR Hidden Potential Event 143001 | Difficulty: 2 Deck: 1 Traceback (most recent call last): File "dokkan.py", line 83, in commands.bulk_daily_logins() File "C:\Users\Nil\Desktop\BotFarm\commands.py", line 4614, in bulk_daily_logins bulk_daily_save_processor(file, login, gift, daily_events, user_input) File "C:\Users\Nil\Desktop\BotFarm\commands.py", line 4647, in bulk_daily_save_processor user_command_executor(user_input) File "C:\Users\Nil\Desktop\BotFarm\commands.py", line 2723, in user_command_executor complete_unfinished_events() File "C:\Users\Nil\Desktop\BotFarm\commands.py", line 2141, in complete_unfinished_events complete_stage(str(stage['sugoroku_map_id'])[:-1], str(stage['sugoroku_map_id'])[-1]) File "C:\Users\Nil\Desktop\BotFarm\commands.py", line 65, in completestage random.choice(list('abcdefghijklmnopqrstuvwxyzBCDEFGHIKLMNOPQRUVWXYZ123456789-')) for i in range(63)) File "C:\Users\Nil\Desktop\BotFarm\commands.py", line 65, in random.choice(list('abcdefghijklmnopqrstuvwxyzBCDEFGHIKLMNOPQRUVWXYZ123456789-')) for i in range(63)) NameError: name 'random' is not defined

NilBarua commented 4 years ago

I just tried the completequests command as well and it gives the error: name: 'random' is not defined

K1mpl0s commented 4 years ago

once you merge the PR, you may close this. @FlashChaser

NilBarua commented 4 years ago

Edit the insert random into the commands.py file and you should be ready.