Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 1.05 KB

README.md

File metadata and controls

24 lines (17 loc) · 1.05 KB

matrix-displayname

NOTE: Instead of using this script, it is now easier to just use the new /roomnick command in Riot/Web, see this PR.

This is just a small Python script to set a displayname for just one Matrix room until support is implemented in major clients (see this tracking issue for Riot/Web).

Usage

./set_displayname '!asfLdzLnOdGRkdPZWu:example.org' 'John Doe' '@johndoe:example.org' [password]

The script takes three positional arguments: the Matrix room ID, the displayname to be set and the Matrix ID (MXID) for the user whose displayname you want to set. You may also supply the user's password as the fourth positional argument; if you do not the script will prompt for the password. You should quote the room ID (or at least escape the exclamation mark !) when using bash (or similar shells) as the exclamation mark ! is a special character there.

Licensing

The code in this project is licensed under the MIT license.