ohld / igbot

🐙 Free scripts, bots and Python API wrapper. Get free followers with our auto like, auto follow and other scripts!
https://hikerapi.com/p/N2P6iqiM
Apache License 2.0
4.71k stars 1.47k forks source link

bot.comment_user uses invalid argument #853

Closed drallcom3 closed 5 years ago

drallcom3 commented 5 years ago

Please follow the guide below


Before submitting an issue, make sure you have:

Purpose of your issue?


The following sections requests more details for particular types of issues, you can remove any section (the contents between the triple ---) not applicable to your issue.


For a bug report, you must include the Python version used, code that will reproduce the error, and the error log/traceback.

Paste the output of python -V here: Python 3.7.2

Code:

Error/Debug Log:


Describe your issue

user_id = self.convert_to_user_id(12099388359)
bot.comment_user(user_id, amount=1)
Traceback (most recent call last):
  File "ultimate.py", line 214, in <module>
    bot.comment_user(12099388359, amount=1)
  File "C:\Users\Me\AppData\Local\Programs\Python\Python37-32\lib\site-packages\instabot\bot\bot.py", line 587, in comment_user
    return comment_user(self, user_id, amount)
  File "C:\Users\Me\AppData\Local\Programs\Python\Python37-32\lib\site-packages\instabot\bot\bot_comment.py", line 93, in comment_user
    if not self.check_user(user_id, filter_closed_acc=True):
TypeError: check_user() got an unexpected keyword argument 'filter_closed_acc'`
check_user doesn't have the argument filter_closed_acc, but comment_user tries to use it.

Doesn't work in bot.comment_user:

if not self.check_user(user_id, filter_closed_acc=True):
        return False

Works in bot.comment_user:

if not self.check_user(user_id):#, filter_closed_acc=True):
        return False
AKwoKWH commented 5 years ago

yes, I have the same issue "check_user() got an unexpected keyword argument 'filter_closed_acc'" need to manually remove the argument

Can we also update the repo? Thanks

AKwoKWH commented 5 years ago

I hv made a pull request related to this. Just disabled the 2nd argument in the code Also I added check_medias() , same as what we hv when doing like which exclude some post not to do action (eg. Blacklist hashtag)

https://github.com/instagrambot/instabot/pull/920

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.