Skip to content

Crashes when trying to get roominfo since plug.dj latest update #151

@WiBla

Description

@WiBla

Plug.dj recently pushed an update that changes the way the room description is displayed.
When the bot is looking for the community's description basicBot.js#L180 it errors out because it can no longer access this information, not only because the classes changed, but also because it isn't pre-loaded anymore. You now have to open the community's about section before you can even attempt to access it.

To remedy this issue, I would strongly advise switching up to an ajax get request pointing to the rooms/state endpoint in order to obtain the community's description. This is much more reliable and future-proof.
The only downside I can see of using this method is if you're spamming the API for some reason, the request will not succeed and you won't be able to gather up the room's details. This would however, not prevent basic (and custom repos for that matter) to load as it is currently the case.

In hope this helps :)

Metadata

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