Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

start.py doesn't increment proxies #108

Open
lowlypalace opened this issue May 4, 2021 · 0 comments
Open

start.py doesn't increment proxies #108

lowlypalace opened this issue May 4, 2021 · 0 comments

Comments

@lowlypalace
Copy link

lowlypalace commented May 4, 2021

Bud Description
The script start.py doesn't increment proxies for any of the bots that use proxies.

To Reproduce
Steps to reproduce the behavior:

  1. Add several proxies in proxies.txt
  2. Launch start.py and choose any of the bots that use proxies.
  3. Add print(proxy_number) at the end of the incrementProxyNumber() function to see the incremented value:
def incrementProxyNumber():
    global proxy_number
    if(proxy_number < len(proxy_list)):
        proxy_number += 1
    else:
        proxy_number = 0
    print(proxy_number)
  1. See the console output:

Screenshot 2021-05-04 at 17 57 42

Expected behavior
The incrementProxyNumber() function is supposed to assign a new proxy for each of the tokens. Instead, it assigns the proxy_number value to 1 and doesn't increment it afterward.

Solution
The issue is in the code below:

if(proxy_number < len(proxy_list)):
        proxy_number =+ 1

proxy_number gets assigned to 1 instead of incrementing the value. The increment operator =+ is misspelled and should be instead +=.

Fixing it gives the following output:
Screenshot 2021-05-04 at 18 01 25

@lowlypalace lowlypalace changed the title Start.py doesn't increment proxies start.py doesn't increment proxies May 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant