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

Plugin error attribute id #58

Open
futex opened this issue Dec 23, 2022 · 1 comment
Open

Plugin error attribute id #58

futex opened this issue Dec 23, 2022 · 1 comment

Comments

@futex
Copy link

futex commented Dec 23, 2022

Hello i try to run errbot through discord (my token works) but when i launch it i have these errors, does that say something to anyone?
20:24:34 ERROR discord.client Ignoring exception in on_ready
Traceback (most recent call last):
File "./errbot-ve/lib/python3.10/site-packages/discord/client.py", line 409, in _run_event
await coro(*args, **kwargs)
File "./errbot-ve/lib/python3.10/site-packages/err-backend-discord/err-backend-discord.py", line 90, in on_ready
self.bot_identifier = DiscordPerson(DiscordBackend.client.user.id)
File "./errbot-ve/lib/python3.10/site-packages/err-backend-discord/discordlib/person.py", line 56, in init
raise ValueError(f"Invalid Discord user id {type(user_id)} {user_id}.")
ValueError: Invalid Discord user id <class 'int'> XXXXXXXXXXX.

And when i try to launch a plugin i got this error:

20:24:45 ERROR discord.client Ignoring exception in on_message
Traceback (most recent call last):
File "./errbot-ve/lib/python3.10/site-packages/discord/client.py", line 409, in _run_event
await coro(*args, **kwargs)
File "./errbot-ve/lib/python3.10/site-packages/err-backend-discord/err-backend-discord.py", line 114, in on_message
if self.process_message(err_msg):
File "./errbot-ve/lib/python3.10/site-packages/errbot/core.py", line 282, in process_message
if self.isfrom_self(msg):
File "./errbot-ve/lib/python3.10/site-packages/err-backend-discord/err-backend-discord.py", line 139, in is_from_self
return other.id == self.bot
identifier.id
AttributeError: 'NoneType' object has no attribute 'id' `

@futex
Copy link
Author

futex commented Jan 8, 2023

I still having this issue, and as you can see i have all the last packages version

errbot                  6.1.9    
discord.py              2.0.1
err-backend-discord     4.0.0

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