voidstar0 / blm-instagram-bot

Inform users clogging the #BlackLivesMatter tag on IG with solid images
135 stars 31 forks source link

Multiple changes to the bot, should be clearer now #13

Closed mehdichekori closed 4 years ago

mehdichekori commented 4 years ago

Added a random wait time to reduce the times Instagram blocks the accounts from commenting Added multiple comments Added colorIt library for clarity Removed the env variable (wasn't working for me) Changed the exception catcher

mathematicalmichael commented 4 years ago

i think you need to copy .env.example to .env and edit yourself, avoids accidental commits of info.

mehdichekori commented 4 years ago

Thanks!

syntax commented 4 years ago

random wait time is probably a very suitable/smart implementation for stopping the rate limit tbh!

mehdichekori commented 4 years ago

Re-added the reference to the .env file, Added the rate limiter that was implemented in the master

mathematicalmichael commented 4 years ago

random wait time is probably a very suitable/smart implementation for stopping the rate limit tbh!

I just added time.sleep(random.randint(1,10)) to the bottom of the try block and it helped, but didn't fix entirely.

voidstar0 commented 4 years ago

Thank you so much for this!