Table of Contents

Matrix Synapse Miscellaneous

Different things, sometimes advanced and some things that just did not fit in the regular guide.

Matrix tips they don't tell you

https://wordsmith.social/cos/matrix-tips-they-dont-tell-you

Interesting projects

Moved to Matrix projects

Synpase maintenance tools

Show the public rooms on the server

Coturn

Coturn is a turn server and it is used for 1:1 voip calls through the client (example: riot).

apt install coturn

Edit Config files

opening ports

Installing Bots

Matrix Synapse currently does not have a concept of bots, a bot is just a normal user. Usally there is a config and a .py file, download the files, unpack them and run the .py file. Running and downloading things via pip is not recommended.

Install python3

sudo apt install python3

then install pip

sudo apt install python3-pip

then matrix-bot-api from pyp

pip3 install matrix-bot-api

and finally fill out the config and start it

python3 pollbot.py

Exclude a server from a channel

Info von https://matrix.org/docs/guides/moderation#banning-servers-from-rooms-server-acls bzw. direkt https://spec.matrix.org/latest/client-server-api/#server-access-control-lists-acls-for-rooms

{
	"allow": [
		"*"
	],
	"allow_ip_literals": false,
	"deny": [
		"kiwifarms.net",
		"*.kiwifarms.net",
		"zygoat.club",
		"*.zygoat.club"
	]
}

Send custom reactions to messages (Powerlevel 1)

{
    "m.relates_to": {
        "rel_type": "m.annotation",
        "event_id": "$164569109460761pvPSY:matrix.org",
        "key": "BOMP!"
    }
}

Send custom reactions to messages (Powerlevel >=50)

{
    "m.relates_to": {
        "rel_type": "m.annotation",
        "event_id": "$164569109460761pvPSY:matrix.org",
        "key": "BOMP!"
    }
}

Tombstone Event

https://spec.matrix.org/latest/client-server-api/#events-17

{
    "body": "This room has been replaced",
    "replacement_room": "!ERZvriGbDxJDxaCBxX:matrix.org"
  }

Inactive room blocking address

IIRC you can request release of alias at support@matrix.org