errbotio / err-backend-discord

Backend for Discord for Errbot
GNU General Public License v3.0
23 stars 21 forks source link

Plugin error attribute id #58

Open futex opened 1 year ago

futex commented 1 year ago

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.is_from_self(msg): File "./errbot-ve/lib/python3.10/site-packages/err-backend-discord/err-backend-discord.py", line 139, in is_fromself return other.id == self.botidentifier.id AttributeError: 'NoneType' object has no attribute 'id' `

futex commented 1 year ago

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