errbotio / err-backend-discord

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

Issue on start with err-backend-discord #59

Open kengodwin opened 1 year ago

kengodwin commented 1 year ago

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 commented 1 year ago

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

nzlosh commented 1 year ago

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 commented 1 year ago

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.