a really stupid simple maubot module that allows for only a designated list of users to get your maubot instance to join another room.
the reason this exists is really because this reature request exists but is not implemented.
to use this, add this plugin as an instance under the bot user you'd like to restrict joining on, add user IDs to the admins list in the config, and disable autojoin on the bot instance. now, only people in the admin list are able to invite your bot to rooms.
you can use the !join #someroom:example.com
command and your bot will go try to join that room, even if you are not a
member of it yourself. if the room in question has restricted access (invite-only, space-membership is required, etc)
you should try to meet that criteria first, otherwise the bot will return the error. this command supports both aliases
and room IDs.
use the !part
command similarly to the !join
command to get your bot to leave a room by alias or ID! amazing!