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

Issue on start with err-backend-discord #59

Open
kengodwin opened this issue Jan 29, 2023 · 3 comments
Open

Issue on start with err-backend-discord #59

kengodwin opened this issue Jan 29, 2023 · 3 comments

Comments

@kengodwin
Copy link

Error Message
01:52:03 ERROR discord.client Ignoring exception in on_ready
Traceback (most recent call last):
File "/root/chatops/errbot/lib/python3.10/site-packages/discord/client.py", line 409, in _run_event
await coro(*args, **kwargs)
File "/root/chatops/errbot/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 "/root/chatops/errbot/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'> 1069064502915637279.

BOT_ADMINS
It correctly converts @# in BOT_ADMINS to the correct user id. However, it bombs out here and I'm not sure why.

For the rest of the config
"initial_intents": "all",
"intents": ["guilds","members","bans","emojis","integrations","webhooks","invites","voice_states","presences","guild_messages","dm_messages","guild_reactions",
"dm_reactions", "guild_typing", "dm_typing", "message_content", "guild_scheduled_events", "auto_moderation", "auto_moderation_configuration", "auto_moderation_execution"
]

For debugging, I gave it all intents I could think of. Also tried with:

"initial_intents": "all",
"intents": [ ]

RE: Discord Intents/Perms
I also gave it all the intents & perms on Discord.

This was the version installed from pip for both errbot and err-backend-discord.

If you need more information let me know.

Documentation wise for fresh installs
Its probably worth noting the fact you need an @ for the discord name and BOT_EXTRA_BACKEND_DIR config directive to get to this point. I learned that from looking at github issues. I understand the second one is being fixed but yeah, not sure if you want me to do a pull request for that or just do it yourself.

@futex
Copy link

futex commented Apr 25, 2023

I have the same error, but it seem this project is dead :/

@nzlosh
Copy link
Collaborator

nzlosh commented Apr 26, 2023

I've not had enough free time to dedicate to working on the discord backend over the last few months. If someone else is willing to step up to help with getting the fixes done, I'm more than happy to merge and release on pypi.

@nzlosh
Copy link
Collaborator

nzlosh commented Apr 26, 2023

https://github.com/errbotio/err-backend-discord/tree/fix_person I've made the progress available in this branch for people to continue working on it and eventually have it merged to master.

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

3 participants