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

User object is not sub scriptable #202

Closed
aidanMiklos opened this issue Aug 7, 2021 · 1 comment · Fixed by #203
Closed

User object is not sub scriptable #202

aidanMiklos opened this issue Aug 7, 2021 · 1 comment · Fixed by #203

Comments

@aidanMiklos
Copy link

When running the like() and follow() functions followed by start() this error occurs.

'File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/ext/tasks/init.py", line 101, in _loop await self.coro(*args, **kwargs) File "/home/runner/SlaveSpammer-1/dcbot.py", line 20, in calling bruh() File "/home/runner/SlaveSpammer-1/instagram.py", line 30, in bruh spammer.start() File "/opt/virtualenvs/python3/lib/python3.8/site-packages/instauto/bot/bot.py", line 115, in start accounts = self.input.filtered_accounts File "/opt/virtualenvs/python3/lib/python3.8/site-packages/instauto/bot/input.py", line 91, in filtered_accounts return list(filter( File "/opt/virtualenvs/python3/lib/python3.8/site-packages/instauto/bot/input.py", line 92, in lambda x: x['id'] not in seen and seen.append(x['id']) is None, TypeError: 'User' object is not subscriptable'

stanvanrooy added a commit that referenced this issue Aug 13, 2021
stanvanrooy added a commit that referenced this issue Aug 13, 2021
* fix: use property instead of __getitem__

Fixes #202

* release: v2.0.5
@stanvanrooy
Copy link
Owner

released in v2.0.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants