this post was submitted on 29 Jul 2023
0 points (50.0% liked)

Matrix

3278 readers
1 users here now

An open network for secure, decentralized communication

founded 5 years ago
MODERATORS
 

Can you have a paywall on a matrix space or matrix room so users will have to pay to join spaces or rooms? Is the following functionality possible for a Matrix room/space?

  1. Private room/spaces were no one can join unless invited
  2. An API call to send a invite to a user to join a room/space
  3. An API call to allow a matrix user to join a private room/space
  4. An API call to remove (not ban) a user from a matrix space/room
top 3 comments
sorted by: hot top controversial new old
[–] MentalEdge@sopuli.xyz 3 points 2 years ago

You could use something like matrix-commander to implement this.

Matrix servers don't have an api where you can just make stuff happen, but you can have a user that has admin privileges in the rooms you want to control, and then have that user controlled by whatever you want.

I use matrix-commander to have my auto-update script notify me when it updates a bridge, for example.

[–] ninchuka@lemmy.one 2 points 2 years ago

there's nothing stopping you from doing that really, you could probably setup a bot that hooks into something like patreon or whatever and checks to see if they are subbed or whatever and invite their matrix ID to the space then kick them out of the space and rooms when their sub ends

[–] shortwavesurfer@monero.town 0 points 2 years ago

Possibly. You could require a monero payment for an invite link