Feature/add random range
Fix https://github.com/breuerfelix/instapy-gui/issues/121
Idea: Right now, every time we use the bot, we need to select a specific number for each action(posts to like, people to follow, precentage of private people to follow, etc). It can be an indication to instagram that we are using a bot and also forces the user to make multiple templates for things that can easily be randomized.
The way to solve it is randomize the number used each time - if the user desire it.
This mr contains the following:
- Change in
auth.pyandconf.pyto print errors in stderr (before that, the errors did not print properly) - Change to
bot.py- handle the new range option, and also the old ones - for backward compatibility input_components.jsx- handle the web side of the change, it is visible on every setting page or template that requires int - note that this is the first time I wrote p/react and used css code so please don't go easy on me.
thanks for this PR! for now, i still dont know if i want to go this approach for one reason:
we have multiple inputs in instapy that already use random range and if we go this approach we now have 4 inputs boxes for these inputs. we randomize the mininum and maximum values of the values, which instapy uses to randomize the actual values.
we should integrate the randomness into instapy because there is one big issue with the gui approach: the randomness only occurs one time at "script creation". sometimes, or almost everytime, you want instapy to keep generating random numbers for example if you want to calculate the sleep time from image like to image like. this wouldn't be possible with this approach :)
but i am open for new suggestions if this could be solveable in gui but right now i think the nicer way is to change instapy source code :)