Skip to content

Plugin error attribute id #58

Open
@futex

Description

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' `

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions